System.IO.IsolatedStorage.Helper.IsAssembly C# (CSharp) Method

IsAssembly() static private method

static private IsAssembly ( IsolatedStorageScope scope ) : bool
scope IsolatedStorageScope
return bool
        internal static bool IsAssembly(IsolatedStorageScope scope) => ((scope & IsolatedStorageScope.Assembly) != 0);
        internal static bool IsApplication(IsolatedStorageScope scope) => ((scope & IsolatedStorageScope.Application) != 0);

Usage Example

Beispiel #1
0
        private bool IsMatchingScopeDirectory(string directory)
        {
            string directoryName = Path.GetFileName(directory);

            return
                ((Helper.IsApplication(Scope) && string.Equals(directoryName, s_appFiles, StringComparison.Ordinal)) ||
                 (Helper.IsAssembly(Scope) && string.Equals(directoryName, s_assemFiles, StringComparison.Ordinal)) ||
                 (Helper.IsDomain(Scope) && string.Equals(directoryName, s_files, StringComparison.Ordinal)));
        }