Accessing Built-in Properties in C#
- Updated2025-07-23
- 1 minute(s) read
In C#, you can access the built-in properties by using the native syntax for accessing properties of objects.
The following code obtains the value of the Name property from a Sequence object:
private void Example (Sequence sequenceObj)
{
String nameString = sequenceObj.Name;
}
The following code obtains a reference to a step of a sequence the Sequence object references:
private void Example (SequenceContext contextObj)
{
Sequence sequenceObj;
Step stepObj;
sequenceObj = contextObj.Sequence;
stepObj = sequenceObj.GetStep(2, StepGroups.StepGroup_Main);
}