Hi Guys,
What exactly the structure of BP Code Stage using c#? Can we create a full blown c# class or something similar to Script component in MS SSIS?
A code stage where you can have multiple methods to call like the sample below.
code stage:
Sample1();
static void Sample1()
{
// Input array.
int[] array = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
// Group elements by IsEven.
var result = array.GroupBy(a => IsEven(a));
// Loop over groups.
foreach (var group in result)
{
// Display key for group.
Console.WriteLine("IsEven = {0}:", group.Key);
// Display values in group.
foreach (var value in group)
{
Console.Write("{0} ", value);
}
// End line.
Console.WriteLine();
}
}
static bool IsEven(int value)
{
return value % 2 == 0;
}
Thanks,
Amador
What exactly the structure of BP Code Stage using c#? Can we create a full blown c# class or something similar to Script component in MS SSIS?
A code stage where you can have multiple methods to call like the sample below.
code stage:
Sample1();
static void Sample1()
{
// Input array.
int[] array = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
// Group elements by IsEven.
var result = array.GroupBy(a => IsEven(a));
// Loop over groups.
foreach (var group in result)
{
// Display key for group.
Console.WriteLine("IsEven = {0}:", group.Key);
// Display values in group.
foreach (var value in group)
{
Console.Write("{0} ", value);
}
// End line.
Console.WriteLine();
}
}
static bool IsEven(int value)
{
return value % 2 == 0;
}
Thanks,
Amador