79 references to KnownStrings
System.Xaml (79)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (1)
108_context.AddNamespacePrefix(KnownStrings.XmlPrefix, XamlLanguage.Xml1998Namespace);
System\Xaml\InfosetObjects\XamlXmlReader.cs (1)
224_context.AddNamespacePrefix(KnownStrings.XmlPrefix, XamlLanguage.Xml1998Namespace);
System\Xaml\Parser\GenericTypeNameScanner.cs (6)
359Debug.Assert(KnownStrings.WhitespaceChars.Length == 5); 361if (ch == KnownStrings.WhitespaceChars[0] || 362ch == KnownStrings.WhitespaceChars[1] || 363ch == KnownStrings.WhitespaceChars[2] || 364ch == KnownStrings.WhitespaceChars[3] || 365ch == KnownStrings.WhitespaceChars[4])
System\Xaml\Parser\MeScanner.cs (10)
296typeName.Name = typeName.Name + KnownStrings.Extension; 302KS.Eq(xamlType.UnderlyingType.Name, typeName.Name + KnownStrings.Extension))) 509result = result.TrimEnd(KnownStrings.WhitespaceChars); 510result = result.TrimStart(KnownStrings.WhitespaceChars); 552Debug.Assert(KnownStrings.WhitespaceChars.Length == 5); 554if (ch == KnownStrings.WhitespaceChars[0] || 555ch == KnownStrings.WhitespaceChars[1] || 556ch == KnownStrings.WhitespaceChars[2] || 557ch == KnownStrings.WhitespaceChars[3] || 558ch == KnownStrings.WhitespaceChars[4])
System\Xaml\Parser\NodeStreamSorter.cs (2)
226string xmlNs = _context.FindNamespaceByPrefix(KnownStrings.XmlPrefix); 230EnqueueOneXmlDirectiveProperty(XamlLanguage.Space, KnownStrings.Preserve);
System\Xaml\Parser\XamlAttribute.cs (2)
124if (KS.Eq(Name.Prefix, KnownStrings.XmlNsPrefix)) 133if (String.IsNullOrEmpty(Name.Prefix) && KS.Eq(Name.Name, KnownStrings.XmlNsPrefix))
System\Xaml\Parser\XamlScanner.cs (1)
757if (KS.Eq(attr.Value, KnownStrings.Preserve))
System\Xaml\Runtime\DynamicMethodRuntime.cs (5)
272MethodInfo helper = targetType.GetMethod(KnownStrings.CreateDelegateHelper, 290Emit_LateBoundInvoke(ilGenerator, targetType, KnownStrings.CreateDelegateHelper, 307MethodInfo method = typeof(Delegate).GetMethod(KnownStrings.CreateDelegate, 582s_InvokeMemberMethod = typeof(Type).GetMethod(KnownStrings.InvokeMember, 594KnownStrings.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)
112addMethod = genericICollection.GetMethod(KnownStrings.Add); 160addMethod = GetMethod(type, KnownStrings.Add, TypeOfObjectArray); 176addMethod = GetPublicMethod(genericIDictionary, KnownStrings.Add, 2); 224addMethod = GetMethod(type, KnownStrings.Add, TypeOfTwoObjectArray); 234return GetMethod(type, KnownStrings.Add, new Type[] { contentType }); 254MethodInfo isReadOnlyMethod = genericICollection.GetProperty(KnownStrings.IsReadOnly).GetGetMethod(); 262MethodInfo result = GetMethod(type, KnownStrings.GetEnumerator, Type.EmptyTypes); 297MemberInfo[] addMembers = type.GetMember(KnownStrings.Add, MemberTypes.Method, GetBindingFlags(type)); 391s_getEnumeratorMethod = typeof(IEnumerable).GetMethod(KnownStrings.GetEnumerator); 403s_listAddMethod = typeof(IList).GetMethod(KnownStrings.Add); 415s_dictionaryAddMethod = typeof(IDictionary).GetMethod(KnownStrings.Add);
System\Xaml\Schema\TypeReflector.cs (13)
756string adderName = KnownStrings.Add + name + KnownStrings.Handler; 765MemberInfo[] getters = UnderlyingType.GetMember(KnownStrings.Get + name, MemberTypes.Method, AttachableProperties_BF); 773MemberInfo[] setters = UnderlyingType.GetMember(KnownStrings.Set + name, MemberTypes.Method, AttachableProperties_BF); 884if (!KS.StartsWith(mi.Name, KnownStrings.Get)) 892name = mi.Name.Substring(KnownStrings.Get.Length); 906if (!KS.StartsWith(mi.Name, KnownStrings.Set)) 914name = mi.Name.Substring(KnownStrings.Set.Length); 928if (!KS.StartsWith(mi.Name, KnownStrings.Add) || !KS.EndsWith(mi.Name, KnownStrings.Handler)) 936name = mi.Name.Substring(KnownStrings.Add.Length, 937mi.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)
151return typeName + KnownStrings.GraveQuote + paramNum; 286private string GetTypeExtensionName(string typeName) => typeName + KnownStrings.Extension;
System\Xaml\XamlLanguage.cs (2)
254return KnownStrings.Member; 258return KnownStrings.Property;
System\Xaml\XamlObjectReader.cs (2)
1746if (name.StartsWith(KnownStrings.ReferenceName, StringComparison.Ordinal)) 2568return KnownStrings.ReferenceName + (lastIdentifier++);
System\Xaml\XamlSchemaContext.cs (6)
161result = KnownStrings.DefaultPrefix; 173return KnownStrings.LocalPrefix; 190return KnownStrings.DefaultPrefix; 192else if (KS.Eq(result, KnownStrings.XmlPrefix)) 195return KnownStrings.DefaultPrefix; 204return KnownStrings.LocalPrefix;
System\Xaml\XamlType.cs (3)
1510int index = typeName.IndexOf(KnownStrings.GraveQuote); 1521typeName = GetTypeName(type.DeclaringType) + KnownStrings.NestedTypeDelimiter + typeName; 1529&& (KS.Eq(UnderlyingType.Name, KnownStrings.NullableOfT)
System\Xaml\XamlXmlWriter.cs (7)
304return s[0] == KnownStrings.SpaceChar; 309return s[s.Length - 1] == KnownStrings.SpaceChar; 316if (s[i] == KnownStrings.SpaceChar && s[i + 1] == KnownStrings.SpaceChar) 328if (s[i] == KnownStrings.TabChar || s[i] == KnownStrings.NewlineChar || s[i] == KnownStrings.ReturnChar)