/// <summary> /// Creates a string from the first letter in each word. /// E.g. "SomeTypeName" would generate the string "stn". /// </summary> public static string ToShortName(this Fixable <string> longName) { return(longName.ToString().ToShortName()); }
/// <summary> /// Creates a string from the first letter in each word. /// E.g. "SomeTypeName" would generate the string "stn". /// </summary> /// <param name="scope">Provide an instance to ensure variable names are unique within a given scope.</param> public static string ToVariableName(this Fixable <string> longName, VariableScopeProvider scope = null) { return(longName.ToString().ToVariableName(scope)); }