System.Xml.Xsl.Runtime.XsltFunctions.Substring C# (CSharp) Method

Substring() public static method

public static Substring ( string value, double startIndex ) : string
value string
startIndex double
return string
        public static string Substring(string value, double startIndex)
        {
            startIndex = Round(startIndex);
            if (startIndex <= 0)
            {
                return value;
            }
            else if (startIndex <= value.Length)
            {
                return value.Substring((int)startIndex - 1);
            }
            else
            {
                Debug.Assert(value.Length < startIndex || Double.IsNaN(startIndex));
                return string.Empty;
            }
        }

Same methods

XsltFunctions::Substring ( string value, double startIndex, double length ) : string