79 references to KnownStrings
System.Xaml (79)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (1)
106_context.AddNamespacePrefix(KnownStrings.XmlPrefix, XamlLanguage.Xml1998Namespace);
System\Xaml\InfosetObjects\XamlXmlReader.cs (1)
222_context.AddNamespacePrefix(KnownStrings.XmlPrefix, XamlLanguage.Xml1998Namespace);
System\Xaml\Parser\GenericTypeNameScanner.cs (6)
357Debug.Assert(KnownStrings.WhitespaceChars.Length == 5); 359if (ch == KnownStrings.WhitespaceChars[0] || 360ch == KnownStrings.WhitespaceChars[1] || 361ch == KnownStrings.WhitespaceChars[2] || 362ch == KnownStrings.WhitespaceChars[3] || 363ch == KnownStrings.WhitespaceChars[4])
System\Xaml\Parser\MeScanner.cs (10)
293typeName.Name = typeName.Name + KnownStrings.Extension; 299KS.Eq(xamlType.UnderlyingType.Name, typeName.Name + KnownStrings.Extension))) 506result = result.TrimEnd(KnownStrings.WhitespaceChars); 507result = result.TrimStart(KnownStrings.WhitespaceChars); 549Debug.Assert(KnownStrings.WhitespaceChars.Length == 5); 551if (ch == KnownStrings.WhitespaceChars[0] || 552ch == KnownStrings.WhitespaceChars[1] || 553ch == KnownStrings.WhitespaceChars[2] || 554ch == KnownStrings.WhitespaceChars[3] || 555ch == KnownStrings.WhitespaceChars[4])
System\Xaml\Parser\NodeStreamSorter.cs (2)
223string xmlNs = _context.FindNamespaceByPrefix(KnownStrings.XmlPrefix); 227EnqueueOneXmlDirectiveProperty(XamlLanguage.Space, KnownStrings.Preserve);
System\Xaml\Parser\XamlAttribute.cs (2)
122if (KS.Eq(Name.Prefix, KnownStrings.XmlNsPrefix)) 131if (String.IsNullOrEmpty(Name.Prefix) && KS.Eq(Name.Name, KnownStrings.XmlNsPrefix))
System\Xaml\Parser\XamlScanner.cs (1)
754if (KS.Eq(attr.Value, KnownStrings.Preserve))
System\Xaml\Runtime\DynamicMethodRuntime.cs (5)
268MethodInfo helper = targetType.GetMethod(KnownStrings.CreateDelegateHelper, 286Emit_LateBoundInvoke(ilGenerator, targetType, KnownStrings.CreateDelegateHelper, 303MethodInfo method = typeof(Delegate).GetMethod(KnownStrings.CreateDelegate, 578s_InvokeMemberMethod = typeof(Type).GetMethod(KnownStrings.InvokeMember, 590KnownStrings.GetTypeFromHandle, BindingFlags.Public | BindingFlags.Static,
System\Xaml\Schema\ClrNamespaceUriParser.cs (4)
15return $"{KnownStrings.UriClrNamespace}:{clrNs};{KnownStrings.UriAssembly}={assemblyName}"; 34if (!KS.Eq(keyword, KnownStrings.UriClrNamespace)) 61if (!KS.Eq(keyword, KnownStrings.UriAssembly))
System\Xaml\Schema\CollectionReflector.cs (11)
111addMethod = genericICollection.GetMethod(KnownStrings.Add); 159addMethod = GetMethod(type, KnownStrings.Add, TypeOfObjectArray); 175addMethod = GetPublicMethod(genericIDictionary, KnownStrings.Add, 2); 223addMethod = GetMethod(type, KnownStrings.Add, TypeOfTwoObjectArray); 233return GetMethod(type, KnownStrings.Add, new Type[] { contentType }); 253MethodInfo isReadOnlyMethod = genericICollection.GetProperty(KnownStrings.IsReadOnly).GetGetMethod(); 261MethodInfo result = GetMethod(type, KnownStrings.GetEnumerator, Type.EmptyTypes); 296MemberInfo[] addMembers = type.GetMember(KnownStrings.Add, MemberTypes.Method, GetBindingFlags(type)); 390s_getEnumeratorMethod = typeof(IEnumerable).GetMethod(KnownStrings.GetEnumerator); 402s_listAddMethod = typeof(IList).GetMethod(KnownStrings.Add); 414s_dictionaryAddMethod = typeof(IDictionary).GetMethod(KnownStrings.Add);
System\Xaml\Schema\TypeReflector.cs (13)
754string adderName = KnownStrings.Add + name + KnownStrings.Handler; 763MemberInfo[] getters = UnderlyingType.GetMember(KnownStrings.Get + name, MemberTypes.Method, AttachableProperties_BF); 771MemberInfo[] setters = UnderlyingType.GetMember(KnownStrings.Set + name, MemberTypes.Method, AttachableProperties_BF); 882if (!KS.StartsWith(mi.Name, KnownStrings.Get)) 890name = mi.Name.Substring(KnownStrings.Get.Length); 904if (!KS.StartsWith(mi.Name, KnownStrings.Set)) 912name = mi.Name.Substring(KnownStrings.Set.Length); 926if (!KS.StartsWith(mi.Name, KnownStrings.Add) || !KS.EndsWith(mi.Name, KnownStrings.Handler)) 934name = mi.Name.Substring(KnownStrings.Add.Length, 935mi.Name.Length - KnownStrings.Add.Length - KnownStrings.Handler.Length);
System\Xaml\Schema\XamlMemberInvoker.cs (1)
114string methodName = KnownStrings.ShouldSerialize + _member.Name;
System\Xaml\Schema\XamlNamespace.cs (2)
149return typeName + KnownStrings.GraveQuote + paramNum; 284private string GetTypeExtensionName(string typeName) => typeName + KnownStrings.Extension;
System\Xaml\XamlLanguage.cs (2)
253return KnownStrings.Member; 257return KnownStrings.Property;
System\Xaml\XamlObjectReader.cs (2)
1741if (name.StartsWith(KnownStrings.ReferenceName, StringComparison.Ordinal)) 2563return KnownStrings.ReferenceName + (lastIdentifier++);
System\Xaml\XamlSchemaContext.cs (6)
159result = KnownStrings.DefaultPrefix; 171return KnownStrings.LocalPrefix; 188return KnownStrings.DefaultPrefix; 190else if (KS.Eq(result, KnownStrings.XmlPrefix)) 193return KnownStrings.DefaultPrefix; 202return KnownStrings.LocalPrefix;
System\Xaml\XamlType.cs (3)
1507int index = typeName.IndexOf(KnownStrings.GraveQuote); 1518typeName = GetTypeName(type.DeclaringType) + KnownStrings.NestedTypeDelimiter + typeName; 1526&& (KS.Eq(UnderlyingType.Name, KnownStrings.NullableOfT)
System\Xaml\XamlXmlWriter.cs (7)
302return s[0] == KnownStrings.SpaceChar; 307return s[s.Length - 1] == KnownStrings.SpaceChar; 314if (s[i] == KnownStrings.SpaceChar && s[i + 1] == KnownStrings.SpaceChar) 326if (s[i] == KnownStrings.TabChar || s[i] == KnownStrings.NewlineChar || s[i] == KnownStrings.ReturnChar)