Bind.Utilities.StripGL2Extension C# (CSharp) Méthode

StripGL2Extension() static private méthode

static private StripGL2Extension ( string p ) : string
p string
Résultat string
        internal static string StripGL2Extension(string p)
        {
            return p.Substring(0, p.Length - GetGL2Extension(p).Length);
        }

Usage Example

Exemple #1
0
        static XPathNavigator GetFuncOverride(XPathNavigator nav, Delegate d)
        {
            string name = TrimName(d.Name, false);
            string ext  = d.Extension;

            var function_override =
                nav.SelectSingleNode(String.Format(Path, d.Name, ext)) ??
                nav.SelectSingleNode(String.Format(Path, name, ext)) ??
                nav.SelectSingleNode(String.Format(Path, Utilities.StripGL2Extension(d.Name), ext));

            return(function_override);
        }
All Usage Examples Of Bind.Utilities::StripGL2Extension