Comments on: Blazor Components with Arbitrary and Cascading Parameters https://code-maze.com/blazor-components/ Learn. Code. Succeed. Wed, 15 Jun 2022 11:53:41 +0000 hourly 1 https://wordpress.org/?v=6.7.5 By: Marinko Spasojević https://code-maze.com/blazor-components/#comment-5866 Wed, 15 Jun 2022 11:48:24 +0000 https://code-maze.com/?p=52787#comment-5866 In reply to Constantin.

I agree. I will fix that and rephrase it a bit to make it more understandable. Thank you for the suggestion.

]]>
By: Constantin https://code-maze.com/blazor-components/#comment-5865 Wed, 15 Jun 2022 11:46:21 +0000 https://code-maze.com/?p=52787#comment-5865 In reply to Marinko Spasojević.

The article refers to “Any Type of C# Logic”, and not about “Pure C# Logic”. I have no doubt that you know very well about Razor Syntax and Partial Classes. But the wording “… if you have any type of C# logic in your component, the @code block must exist” is probably not entirely accurate.

]]>
By: Marinko Spasojević https://code-maze.com/blazor-components/#comment-5864 Wed, 15 Jun 2022 11:27:01 +0000 https://code-maze.com/?p=52787#comment-5864 In reply to Constantin.

Ok, thank you. Just, I don’t think we should count that as a pure C# logic since you shouldn’t implement real business logic there, and that’s what we meant with the mentioned sentence. As I said, I find that more of a markup code.

]]>
By: Constantin https://code-maze.com/blazor-components/#comment-5862 Wed, 15 Jun 2022 11:06:00 +0000 https://code-maze.com/?p=52787#comment-5862 In reply to MarinkoSpasojevic.

Yes, i mean the Razor syntax, since it contains C# logic but does not require @code block.

]]>
By: MarinkoSpasojevic https://code-maze.com/blazor-components/#comment-5861 Wed, 15 Jun 2022 10:42:15 +0000 https://code-maze.com/?p=52787#comment-5861 In reply to Constantin.

Could you elaborate please? And I hope you don’t think about @razor syntax which is more of a markup then q c# code. Or Partial classes because that is a completely different thing, which we cover in the next article of the series.

]]>
By: Constantin https://code-maze.com/blazor-components/#comment-5860 Wed, 15 Jun 2022 10:32:02 +0000 https://code-maze.com/?p=52787#comment-5860 Hi. “But, if you have any type of C# logic in your component, the @code block must exist.” That’s not so.

]]>