Skip to content

Conversation

IvetNikolova
Copy link
Contributor

No description provided.

Copy link
Collaborator

@todorarabadzhiev todorarabadzhiev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, use snippets from the CodeSnippets in Reporting solution


{{source=CodeSnippets\CS\API\Telerik\Reporting\ReportSourceSnippets.cs region=Set_Values_For_Unique_Or_Mergable_ReportParameters_In_ReportSource_Snippet}}
{{source=CodeSnippets\VB\API\Telerik\Reporting\ReportSourceSnippets.vb region=Set_Values_For_Unique_Or_Mergable_ReportParameters_In_ReportSource_Snippet}}
````C#
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is much better to continue referencing the code from the CodeSnippets in the Reporting solution. Just fix the code there if necessary.
To avoid duplicating variables, use different scopes and regions. For example:

int a = 0;
if (a == 0)
{
#region 1
// code snippet 1 here
#endregion
} else if (a == 1)
{
#region 2
// code snippet 2 here
#endregion
}
etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants