public override bool Exists() { #if DESKTOP var streamInfo = Application.GetResourceStream(m_resourceUri); if (streamInfo == null) { return(false); } else { CommonTools.DisposeObject(streamInfo.Stream); return(true); } #else var storageFile = StorageFile.GetFileFromApplicationUriAsync(m_resourceUri).AsTask().Result; return(storageFile != null); #endif }
/// <summary> /// Gets the backing array of the given queue. /// </summary> /// <param name="queue">The queue from which to get the backing array for faster loop access.</param> public static T[] GetBackingArray <T>(this Queue <T> queue) { return(CommonTools.GetBackingArray(queue)); }
/// <summary> /// Gets the backing array of the given list. /// </summary> /// <param name="lst">The list from which to get the backing array for faster loop access.</param> public static T[] GetBackingArray <T>(this List <T> lst) { return(CommonTools.GetBackingArray(lst)); }