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 });
        }
Exemplo n.º 2
0
 public bool Contains(LibraryDependencyTypeFlag flag)
 {
     return(_keywords.Contains(flag));
 }
Exemplo 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));
 }
Exemplo 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 });
        }
Exemplo n.º 7
0
 public bool Contains(LibraryDependencyTypeFlag flag)
 {
     return _keywords.Contains(flag);
 }
Exemplo n.º 8
0
 private LibraryDependencyType(LibraryDependencyTypeFlag[] flags)
 {
     _keywords = flags;
 }