OpenMetaverse.InventoryManager.StringToAssetType C# (CSharp) Method

StringToAssetType() public static method

Translate a string name of an AssetType into the proper Type
public static StringToAssetType ( string type ) : AssetType
type string A string containing the AssetType name
return AssetType
        public static AssetType StringToAssetType(string type)
        {
            for (int i = 0; i < _AssetTypeNames.Length; i++)
            {
                if (_AssetTypeNames[i] == type)
                    return (AssetType)i;
            }

            return AssetType.Unknown;
        }