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)
230_context.AddNamespacePrefix(KnownStrings.XmlPrefix, XamlLanguage.Xml1998Namespace);
System\Xaml\Parser\GenericTypeNameScanner.cs (6)
373Debug.Assert(KnownStrings.WhitespaceChars.Length == 5); 375if (ch == KnownStrings.WhitespaceChars[0] || 376ch == KnownStrings.WhitespaceChars[1] || 377ch == KnownStrings.WhitespaceChars[2] || 378ch == KnownStrings.WhitespaceChars[3] || 379ch == KnownStrings.WhitespaceChars[4])
System\Xaml\Parser\MeScanner.cs (10)
299typeName.Name = typeName.Name + KnownStrings.Extension; 305KS.Eq(xamlType.UnderlyingType.Name, typeName.Name + KnownStrings.Extension))) 519result = result.TrimEnd(KnownStrings.WhitespaceChars); 520result = result.TrimStart(KnownStrings.WhitespaceChars); 564Debug.Assert(KnownStrings.WhitespaceChars.Length == 5); 566if (ch == KnownStrings.WhitespaceChars[0] || 567ch == KnownStrings.WhitespaceChars[1] || 568ch == KnownStrings.WhitespaceChars[2] || 569ch == KnownStrings.WhitespaceChars[3] || 570ch == KnownStrings.WhitespaceChars[4])
System\Xaml\Parser\NodeStreamSorter.cs (2)
229string xmlNs = _context.FindNamespaceByPrefix(KnownStrings.XmlPrefix); 233EnqueueOneXmlDirectiveProperty(XamlLanguage.Space, KnownStrings.Preserve);
System\Xaml\Parser\XamlAttribute.cs (2)
121if (KS.Eq(Name.Prefix, KnownStrings.XmlNsPrefix)) 131if (string.IsNullOrEmpty(Name.Prefix) && KS.Eq(Name.Name, KnownStrings.XmlNsPrefix))
System\Xaml\Parser\XamlScanner.cs (1)
771if (KS.Eq(attr.Value, KnownStrings.Preserve))
System\Xaml\Runtime\DynamicMethodRuntime.cs (5)
281MethodInfo helper = targetType.GetMethod(KnownStrings.CreateDelegateHelper, 300Emit_LateBoundInvoke(ilGenerator, targetType, KnownStrings.CreateDelegateHelper, 317MethodInfo method = typeof(Delegate).GetMethod(KnownStrings.CreateDelegate, 597s_InvokeMemberMethod = typeof(Type).GetMethod(KnownStrings.InvokeMember, 610KnownStrings.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)
117addMethod = genericICollection.GetMethod(KnownStrings.Add); 166addMethod = GetMethod(type, KnownStrings.Add, TypeOfObjectArray); 182addMethod = GetPublicMethod(genericIDictionary, KnownStrings.Add, 2); 231addMethod = GetMethod(type, KnownStrings.Add, TypeOfTwoObjectArray); 241return GetMethod(type, KnownStrings.Add, new Type[] { contentType }); 261MethodInfo isReadOnlyMethod = genericICollection.GetProperty(KnownStrings.IsReadOnly).GetGetMethod(); 270MethodInfo result = GetMethod(type, KnownStrings.GetEnumerator, Type.EmptyTypes); 309MemberInfo[] addMembers = type.GetMember(KnownStrings.Add, MemberTypes.Method, GetBindingFlags(type)); 412s_getEnumeratorMethod = typeof(IEnumerable).GetMethod(KnownStrings.GetEnumerator); 425s_listAddMethod = typeof(IList).GetMethod(KnownStrings.Add); 438s_dictionaryAddMethod = typeof(IDictionary).GetMethod(KnownStrings.Add);
System\Xaml\Schema\TypeReflector.cs (13)
781string adderName = KnownStrings.Add + name + KnownStrings.Handler; 790MemberInfo[] getters = UnderlyingType.GetMember(KnownStrings.Get + name, MemberTypes.Method, AttachableProperties_BF); 798MemberInfo[] setters = UnderlyingType.GetMember(KnownStrings.Set + name, MemberTypes.Method, AttachableProperties_BF); 913if (!KS.StartsWith(mi.Name, KnownStrings.Get)) 923name = mi.Name.Substring(KnownStrings.Get.Length); 937if (!KS.StartsWith(mi.Name, KnownStrings.Set)) 947name = mi.Name.Substring(KnownStrings.Set.Length); 961if (!KS.StartsWith(mi.Name, KnownStrings.Add) || !KS.EndsWith(mi.Name, KnownStrings.Handler)) 971name = mi.Name.Substring(KnownStrings.Add.Length, 972mi.Name.Length - KnownStrings.Add.Length - KnownStrings.Handler.Length);
System\Xaml\Schema\XamlMemberInvoker.cs (1)
116string methodName = KnownStrings.ShouldSerialize + _member.Name;
System\Xaml\Schema\XamlNamespace.cs (2)
150return typeName + KnownStrings.GraveQuote + paramNum; 293private string GetTypeExtensionName(string typeName) => typeName + KnownStrings.Extension;
System\Xaml\XamlLanguage.cs (2)
253return KnownStrings.Member; 258return KnownStrings.Property;
System\Xaml\XamlObjectReader.cs (2)
1751if (name.StartsWith(KnownStrings.ReferenceName, StringComparison.Ordinal)) 2578return KnownStrings.ReferenceName + (lastIdentifier++);
System\Xaml\XamlSchemaContext.cs (6)
164result = KnownStrings.DefaultPrefix; 178return KnownStrings.LocalPrefix; 198return KnownStrings.DefaultPrefix; 200else if (KS.Eq(result, KnownStrings.XmlPrefix)) 203return KnownStrings.DefaultPrefix; 212return KnownStrings.LocalPrefix;
System\Xaml\XamlType.cs (3)
1622int index = typeName.IndexOf(KnownStrings.GraveQuote); 1634typeName = GetTypeName(type.DeclaringType) + KnownStrings.NestedTypeDelimiter + typeName; 1643&& (KS.Eq(UnderlyingType.Name, KnownStrings.NullableOfT)
System\Xaml\XamlXmlWriter.cs (7)
306return s[0] == KnownStrings.SpaceChar; 311return s[s.Length - 1] == KnownStrings.SpaceChar; 318if (s[i] == KnownStrings.SpaceChar && s[i + 1] == KnownStrings.SpaceChar) 331if (s[i] == KnownStrings.TabChar || s[i] == KnownStrings.NewlineChar || s[i] == KnownStrings.ReturnChar)