Nez.Portable/Utils/NezContentManager.cs
/// <summary>
/// checks to see if an asset with assetName is loaded
/// </summary>
/// <returns><c>true</c> if this instance is asset loaded the specified assetName; otherwise, <c>false</c>.</returns>
/// <param name="assetName">Asset name.</param>
checks to see if an asset with assetName is loaded
checks to see if an asset with assetName is loaded
public bool isAssetLoaded(string assetName)
        {
#if FNA
			var fieldInfo = ReflectionUtils.getFieldInfo( this, "loadedAssets" );
			var LoadedAssets = fieldInfo.GetValue( this ) as Dictionary<string, object>;
			#endif
            return LoadedAssets.ContainsKey(assetName);
        }
public bool isAssetLoaded ( string assetName ) { if FNA var fieldInfo = ReflectionUtils . getFieldInfo ( this , " " ) ; var LoadedAssets = fieldInfo . GetValue ( this ) as Dictionary < string , object > ; endif return LoadedAssets . ContainsKey ( assetName ) ; }
checks to see if an asset with assetName is loaded
checks to see if an asset with assetName is loaded
None
assetName
string
None