Git.Core.Object.TypeToString C# (CSharp) Method

TypeToString() public static method

Convert a type to its string representation
public static TypeToString ( Type type ) : string
type System.Type
return string
        public static string TypeToString(Type type)
        {
            switch (type) {
            case Type.Blob:
                return "blob";
            case Type.Tree:
                return "tree";
            case Type.Tag:
                return "tag";
            case Type.Commit:
                return "commit";
            }

            return "blob";
        }