34 references to Any
System.Xaml (8)
System\Xaml\Schema\XamlDirective.cs (1)
59_allowedLocation = AllowedMemberLocations.Any;
System\Xaml\XamlLanguage.cs (7)
128s_listOfObject.Value, null, AllowedMemberLocations.Any), true); 137s_string.Value, BuiltInValueConverter.Int32, AllowedMemberLocations.Any), true); 140s_string.Value, BuiltInValueConverter.String, AllowedMemberLocations.Any), true); 145s_listOfObject.Value, null, AllowedMemberLocations.Any), true); 148s_object.Value, null, AllowedMemberLocations.Any), true); 151s_object.Value, BuiltInValueConverter.String, AllowedMemberLocations.Any), true); 162s_listOfObject.Value, null, AllowedMemberLocations.Any), true);
System.Xaml.Tests (26)
System\Xaml\XamlDirectiveTests.cs (19)
19yield return new object?[] { new string[] { "xamlNamespace" }, "name", null, AllowedMemberLocations.Any }; 42Assert.Throws<ArgumentNullException>("xamlType", () => new XamlDirective(new string[] { "namespace"}, "name", null, null, AllowedMemberLocations.Any)); 49Assert.Throws<ArgumentNullException>("xamlNamespaces", () => new XamlDirective(null, "name", type, null, AllowedMemberLocations.Any)); 56Assert.Throws<ArgumentException>("xamlNamespaces", () => new XamlDirective(new string?[] { null }, "name", type, null, AllowedMemberLocations.Any)); 69Assert.Equal(AllowedMemberLocations.Any, directive.AllowedLocation); 83var directive = new XamlDirective(new string[] { "namespace"}, "name", type, null, AllowedMemberLocations.Any); 91var directive = new XamlDirective(new string[] { "namespace"}, "name", type, null, AllowedMemberLocations.Any); 99var directive = new XamlDirective(new string[] { "xamlNamespace" }, "name", type1, null, AllowedMemberLocations.Any); 101yield return new object?[] { directive, new XamlDirective(new string[] { "xamlNamespace" }, "name", type1, null, AllowedMemberLocations.Any), true }; 104yield return new object?[] { directive, new XamlDirective(new string[] { "xamlNamespace" }, "name", type2, null, AllowedMemberLocations.Any), true }; 105yield return new object?[] { directive, new XamlDirective(new string[] { "xamlNamespaces" }, "name", type1, null, AllowedMemberLocations.Any), false }; 106yield return new object?[] { directive, new XamlDirective(Array.Empty<string>(), "name", type1, null, AllowedMemberLocations.Any), false }; 107yield return new object?[] { directive, new XamlDirective(new string[] { "xamlNamespace", "2" }, "name", type1, null, AllowedMemberLocations.Any), false }; 108yield return new object?[] { directive, new XamlDirective(new string[] { "xamlNamespace" }, "name2", type1, null, AllowedMemberLocations.Any), false }; 109yield return new object?[] { directive, new XamlDirective(new string[] { "xamlNamespace" }, null, type1, null, AllowedMemberLocations.Any), false }; 150yield return new object[] { new XamlDirective(Array.Empty<string>(), "name", type, null, AllowedMemberLocations.Any), "name" }; 151yield return new object[] { new XamlDirective(new string[] { "1", "2" }, "name", type, null, AllowedMemberLocations.Any), "{1}name" }; 250var converter = new SubXamlDirective(Array.Empty<string>(), "name", type, typeConverter, AllowedMemberLocations.Any); 258var converter = new SubXamlDirective(Array.Empty<string>(), "name", type, null!, AllowedMemberLocations.Any);
System\Xaml\XamlLanguageTests.cs (7)
276Assert.Equal(AllowedMemberLocations.Any, directive.AllowedLocation); 341Assert.Equal(AllowedMemberLocations.Any, directive.AllowedLocation); 354Assert.Equal(AllowedMemberLocations.Any, directive.AllowedLocation); 380Assert.Equal(AllowedMemberLocations.Any, directive.AllowedLocation); 393Assert.Equal(AllowedMemberLocations.Any, directive.AllowedLocation); 406Assert.Equal(AllowedMemberLocations.Any, directive.AllowedLocation); 458Assert.Equal(AllowedMemberLocations.Any, directive.AllowedLocation);