I have two methods and I want to get a variable from one method to another. It is the base64
variable that is in the base64Decode
function.
The code is as follows:
public class WK_UpdateAlvo : CodeActivity
{
[Input("StringFile")]
public InArgument<string> StringFile { get; set; }
protected override void Execute(CodeActivityContext Execontext)
{
ITracingService _tracing;
try
{
AllMethods.Base64Decode(base64);
_tracing.Trace("base64: {0}", base64);
}
catch {
trhow;
}
public class AllMethods
{
//decode a string
public static string Base64Decode(string stringfile)
{
var base64 = System.Convert.FromBase64String(stringfile);
return System.Text.Encoding.UTF8.GetString(base64);
}
}
}
}
Thank you.