Exemplo n.º 1
0
        public void Normalize()
        {
            switch (Type)
            {
            case CroInfoType.Default:
            {
                if (Patterns == null || Patterns.Length == 0 || Patterns.Contains("*.nupkg"))
                {
                    Patterns = new string[] { "*.exe", "*.dll" };
                }
                if (string.IsNullOrEmpty(Partial) || Partial == "[nuget]")
                {
                    Partial = "Programs";
                }
                break;
            }

            case CroInfoType.Ignore:
            {
                Patterns  = new string[0];
                Partial   = string.Empty;
                AddToPath = false;
                break;
            }

            case CroInfoType.NuGet:
            {
                Patterns  = new string[] { "*.nupkg" };
                Partial   = "[nuget]";
                AddToPath = false;
                break;
            }
            }
        }
Exemplo n.º 2
0
 public bool Contains(Pattern item)
 {
     return(Patterns.Contains(item));
 }