private static void DeclareOnOff(string name, LibraryDependencyTypeFlag flag, IEnumerable <LibraryDependencyTypeFlag> emptyFlags)
        {
            Declare(name,
                    flagsToAdd: new[] { flag },
                    flagsToRemove: emptyFlags);

            Declare(
                name + "-off",
                flagsToAdd: emptyFlags,
                flagsToRemove: new[] { flag });
        }
Esempio n. 2
0
 public bool Contains(LibraryDependencyTypeFlag flag)
 {
     return(_keywords.Contains(flag));
 }
Esempio n. 3
0
        public override bool Equals(object obj)
        {
            LibraryDependencyTypeFlag other = obj as LibraryDependencyTypeFlag;

            return(other != null && string.Equals(_value, other._value, System.StringComparison.Ordinal));
        }
 /// <summary>
 /// Type property flag
 /// </summary>
 public bool HasFlag(LibraryDependencyTypeFlag flag)
 {
     return(Type.Contains(flag));
 }
Esempio n. 5
0
 public bool HasFlag(LibraryDependencyTypeFlag flag)
 {
     return Type.Contains(flag);
 }
        private static void DeclareOnOff(string name, LibraryDependencyTypeFlag flag, IEnumerable<LibraryDependencyTypeFlag> emptyFlags)
        {
            Declare(name,
                flagsToAdd: new[] { flag },
                flagsToRemove: emptyFlags);

            Declare(
                name + "-off",
                flagsToAdd: emptyFlags,
                flagsToRemove: new[] { flag });
        }
Esempio n. 7
0
 public bool Contains(LibraryDependencyTypeFlag flag)
 {
     return _keywords.Contains(flag);
 }
Esempio n. 8
0
 private LibraryDependencyType(LibraryDependencyTypeFlag[] flags)
 {
     _keywords = flags;
 }