System.Globalization.CompareInfo.LastIndexOf C# (CSharp) Method

LastIndexOf() public method

public LastIndexOf ( String source, String value ) : int
source String
value String
return int
        public unsafe virtual int LastIndexOf(String source, String value)
        {
            if (source==null)
                throw new ArgumentNullException("source");

            // Can't start at negative index, so make sure we check for the length == 0 case.
            return LastIndexOf(source, value, source.Length - 1,
                source.Length, CompareOptions.None);
        }
    

Same methods

CompareInfo::LastIndexOf ( String source, String value, CompareOptions options ) : int
CompareInfo::LastIndexOf ( String source, String value, int startIndex ) : int
CompareInfo::LastIndexOf ( String source, String value, int startIndex, CompareOptions options ) : int
CompareInfo::LastIndexOf ( String source, String value, int startIndex, int count ) : int
CompareInfo::LastIndexOf ( String source, String value, int startIndex, int count, CompareOptions options ) : int
CompareInfo::LastIndexOf ( String source, char value ) : int
CompareInfo::LastIndexOf ( String source, char value, CompareOptions options ) : int
CompareInfo::LastIndexOf ( String source, char value, int startIndex ) : int
CompareInfo::LastIndexOf ( String source, char value, int startIndex, CompareOptions options ) : int
CompareInfo::LastIndexOf ( String source, char value, int startIndex, int count ) : int
CompareInfo::LastIndexOf ( String source, char value, int startIndex, int count, CompareOptions options ) : int

Usage Example

Example #1
0
	void AssertLastIndexOf (string message, int expected, string source,
		string target, int idx, int len, CompareOptions opt, CompareInfo ci)
	{
		Assert.AreEqual (expected, ci.LastIndexOf (source, target, idx, len, opt), message);
	}
All Usage Examples Of System.Globalization.CompareInfo::LastIndexOf