Section.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
    public override string ToString()
    {
        return string.Concat("id: ", id, "  s_upToHere: ", s_upToHere, "  s_inSection: ", s_inSection, "  velocReducer: ", velocReducer, "  startCoord: ", sectionStartCoord, "  endCoord: ", sectionEndCoord);
    }

Usage Example

Example #1
0
        public void Show(Section section)
        {
            var sectionType = System.Reflection.Assembly.GetExecutingAssembly().GetTypes()
                              .Where(type => type.GetMethod(section.ToString()) != null)
                              .First();

            var sectionMethod = sectionType.GetMethod(section.ToString());

            var instance = Activator.CreateInstance(sectionType);

            sectionMethod.Invoke(instance, null);
        }
All Usage Examples Of Section::ToString