Someone asked if they could set the value of a public variable field in a .NET class from within an expression shape on an orchestration.
For example:
[Serializable]
public class Class1
{
public Class1()
{
} public string MyString;
…
}Expression shape code:myClass1 = new Class1();
myClass1.MyString = “XXX”; Orchestration does not support fields, but you can still use properties. So try something like below:[Serializable]
public class Class1
{
private string m_myString; public string MyString
{
get
{
return m_myString;
}
set
{
m_myString = value;
}
}
}This still works..