Forge/Editor/PrefabInspector.cs
/// <summary>
/// Removes the extension from a file, if there is one.
/// </summary>
Removes the extension from a file, if there is one.
Removes the extension from a file if there is one .
private string RemoveExtension(string path) {
            int extensionIndex = path.LastIndexOf(".");
            if (extensionIndex < 0) {
                return path;
            }
            return path.Substring(0, extensionIndex);
        }
private string RemoveExtension ( string path ) { int extensionIndex = path . LastIndexOf ( " " ) ; if ( extensionIndex < 0 ) { return path ; } return path . Substring ( 0 , extensionIndex ) ; }
Removes the extension from a file, if there is one.
Removes the extension from a file if there is one .
path
string