fx\src\data\System\Data\SQLTypes\SqlXml.cs (13)
47private readonly static Func<Stream, XmlReaderSettings, XmlParserContext, XmlReader> sqlReaderDelegate = CreateSqlReaderDelegate();
63 public SqlXml(XmlReader value) {
88public XmlReader CreateReader() {
106XmlReader r = CreateSqlXmlReader(stream);
111 internal static XmlReader CreateSqlXmlReader(Stream stream, bool closeInput = false, bool throwTargetInvocationExceptions = false) {
131private static Func<Stream, XmlReaderSettings, XmlParserContext, XmlReader> CreateSqlReaderDelegate()
134return (Func<Stream, XmlReaderSettings, XmlParserContext, XmlReader>)Delegate.CreateDelegate(typeof(Func<Stream, XmlReaderSettings, XmlParserContext, XmlReader>), CreateSqlReaderMethodInfo);
140s_createSqlReaderMethodInfo = typeof(System.Xml.XmlReader).GetMethod("CreateSqlReader", BindingFlags.Static | BindingFlags.NonPublic);
163 XmlReader reader = this.CreateReader();
189 private Stream CreateMemoryStreamFromXmlReader(XmlReader reader) {
217 void IXmlSerializable.ReadXml(XmlReader r) {
250XmlReader reader = this.CreateReader();
System\Data\EntityModel\SchemaObjectModel\SchemaElement.cs (25)
199internal void AddError( ErrorCode errorCode, EdmSchemaErrorSeverity severity, XmlReader reader, object message )
235internal void Parse(XmlReader reader)
321internal void GetPositionInfo(XmlReader reader)
332internal static void GetPositionInfo(XmlReader reader, out int lineNumber, out int linePosition)
412protected string HandleUndottedNameAttribute(XmlReader reader, string field)
431protected ReturnValue<string> HandleDottedNameAttribute(XmlReader reader, string field, Func<object, string> errorFormat)
450internal bool HandleIntAttribute(XmlReader reader, ref int field)
466internal bool HandleByteAttribute(XmlReader reader, ref byte field)
481internal bool HandleBoolAttribute(XmlReader reader, ref bool field)
495protected virtual void SkipThroughElement(XmlReader reader)
501protected void SkipElement(XmlReader reader)
503using (XmlReader subtree = reader.ReadSubtree())
525protected virtual bool HandleText(XmlReader reader)
542private void HandleDocumentationElement(XmlReader reader)
552protected virtual void HandleNameAttribute(XmlReader reader)
587private void ParseAttribute(XmlReader reader)
633internal static bool CanHandleAttribute(XmlReader reader, string localName)
639protected virtual bool HandleAttribute(XmlReader reader)
650private bool AddOtherContent(XmlReader reader)
690using (XmlReader subtree = reader.ReadSubtree())
735private bool ParseElement(XmlReader reader)
761protected bool CanHandleElement(XmlReader reader, string localName)
766protected virtual bool HandleElement(XmlReader reader)
781private void ParseText(XmlReader reader)
799internal static void AssertReaderConsidersSchemaInvalid(XmlReader reader)
System\Data\EntityModel\SchemaObjectModel\Utils.cs (7)
98public static bool GetString(Schema schema, XmlReader reader, out string value)
128public static bool GetDottedName(Schema schema, XmlReader reader,out string name)
138internal static bool ValidateDottedName(Schema schema, XmlReader reader, string name)
168public static bool GetUndottedName(Schema schema,XmlReader reader,out string name)
229public static bool GetBool(Schema schema, XmlReader reader, out bool value)
258public static bool GetInt(Schema schema,XmlReader reader,out int value)
281public static bool GetByte(Schema schema,XmlReader reader,out byte value)
System\Data\SqlClient\SqlTypesAssembly.cs (12)
165this.sqlGeographyFromGMLReader = CreateStaticConstructorDelegate<System.Xml.XmlReader>(sqlGeog, "GeomFromGml");
170this.sqlGeometryFromGMLReader = CreateStaticConstructorDelegate<System.Xml.XmlReader>(sqlGeom, "GeomFromGml");
186this.sqlXmlFromXmlReader = Expressions.Lambda<System.Xml.XmlReader, object>("readerVaue", readerVal => BuildConvertToSqlXml(readerVal, this.SqlXmlType)).Compile();
346private readonly Func<System.Xml.XmlReader, object> sqlXmlFromXmlReader;
349System.Xml.XmlReader xmlReader = XmlReaderFromString(stringValue);
494var xmlReader = XmlReaderFromString(gmlValue);
502private static System.Xml.XmlReader XmlReaderFromString(string stringValue)
504return System.Xml.XmlReader.Create(new System.IO.StringReader(stringValue));
509private readonly Func<System.Xml.XmlReader, int, object> sqlGeographyFromGMLReader;
513private readonly Func<System.Xml.XmlReader, int, object> sqlGeometryFromGMLReader;
552Debug.Assert(toConvert.Type == typeof(System.Xml.XmlReader), "Argument to static constructor method was not byte[], string or XmlReader?");
553if (toConvert.Type == typeof(System.Xml.XmlReader))
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (26)
100public override bool CanRead(XmlReader reader)
116void IXmlSerializable.ReadXml(XmlReader reader)
139public override void ReadFrom(XmlReader reader)
163internal static void ReadCategory(XmlReader reader, SyndicationCategory category, string version, bool preserveAttributeExtensions, bool preserveElementExtensions, int maxExtensionSize)
248internal static TextSyndicationContent ReadTextContentFrom(XmlReader reader, string context, bool preserveAttributeExtensions)
275internal void ReadItemFrom(XmlReader reader, SyndicationItem result)
280internal bool TryParseFeedElementFrom(XmlReader reader, SyndicationFeed result)
335internal bool TryParseItemElementFrom(XmlReader reader, SyndicationItem result)
516protected virtual SyndicationItem ReadItem(XmlReader reader, SyndicationFeed feed)
534protected virtual IEnumerable<SyndicationItem> ReadItems(XmlReader reader, SyndicationFeed feed, out bool areAllItemsRead)
574static TextSyndicationContent ReadTextContentFromHelper(XmlReader reader, string type, string context, bool preserveAttributeExtensions)
655DateTimeOffset DateFromString(string dateTimeString, XmlReader reader)
693void ReadCategory(XmlReader reader, SyndicationCategory category)
698SyndicationCategory ReadCategoryFrom(XmlReader reader, SyndicationFeed feed)
705SyndicationCategory ReadCategoryFrom(XmlReader reader, SyndicationItem item)
712SyndicationContent ReadContentFrom(XmlReader reader, SyndicationItem item)
776void ReadFeed(XmlReader reader)
782SyndicationFeed ReadFeedFrom(XmlReader reader, SyndicationFeed result, bool isSourceFeed)
901void ReadItemFrom(XmlReader reader, SyndicationItem result, Uri feedBaseUri)
988void ReadLink(XmlReader reader, SyndicationLink link, Uri baseUri)
1085SyndicationLink ReadLinkFrom(XmlReader reader, SyndicationFeed feed)
1092SyndicationLink ReadLinkFrom(XmlReader reader, SyndicationItem item)
1099SyndicationPerson ReadPersonFrom(XmlReader reader, SyndicationFeed feed)
1106SyndicationPerson ReadPersonFrom(XmlReader reader, SyndicationItem item)
1113void ReadPersonFrom(XmlReader reader, SyndicationPerson result)
1190TextSyndicationContent ReadTextContentFrom(XmlReader reader, string context)
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (9)
69public override bool CanRead(XmlReader reader)
85void IXmlSerializable.ReadXml(XmlReader reader)
112public override void ReadFrom(XmlReader reader)
145internal static CategoriesDocument ReadCategories(XmlReader reader, Uri baseUri, CreateInlineCategoriesDelegate inlineCategoriesFactory, CreateReferencedCategoriesDelegate referencedCategoriesFactory, string version, bool preserveElementExtensions, bool preserveAttributeExtensions, int maxExtensionSize)
227static void ReadInlineCategories(XmlReader reader, InlineCategoriesDocument inlineCategories, Uri baseUri, string version, bool preserveElementExtensions, bool preserveAttributeExtensions, int maxExtensionSize)
320static void ReadReferencedCategories(XmlReader reader, ReferencedCategoriesDocument referencedCategories, Uri baseUri, Uri link, string version, bool preserveElementExtensions, bool preserveAttributeExtensions, int maxExtensionSize)
447ResourceCollectionInfo ReadCollection(XmlReader reader, Workspace workspace)
547void ReadDocument(XmlReader reader)
639Workspace ReadWorkspace(XmlReader reader, ServiceDocument document)
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (18)
112public override bool CanRead(XmlReader reader)
128void IXmlSerializable.ReadXml(XmlReader reader)
151public override void ReadFrom(XmlReader reader)
189internal void ReadItemFrom(XmlReader reader, SyndicationItem result)
204protected virtual SyndicationItem ReadItem(XmlReader reader, SyndicationFeed feed)
222protected virtual IEnumerable<SyndicationItem> ReadItems(XmlReader reader, SyndicationFeed feed, out bool areAllItemsRead)
262static DateTimeOffset DateFromString(string dateTimeString, XmlReader reader)
479SyndicationLink ReadAlternateLink(XmlReader reader, Uri baseUri)
510SyndicationCategory ReadCategory(XmlReader reader, SyndicationFeed feed)
517SyndicationCategory ReadCategory(XmlReader reader, SyndicationItem item)
524void ReadCategory(XmlReader reader, SyndicationCategory category)
563void ReadFeed(XmlReader reader)
569void ReadItemFrom(XmlReader reader, SyndicationItem result, Uri feedBaseUri)
759SyndicationLink ReadMediaEnclosure(XmlReader reader, Uri baseUri)
814SyndicationPerson ReadPerson(XmlReader reader, SyndicationFeed feed)
821SyndicationPerson ReadPerson(XmlReader reader, SyndicationItem item)
828void ReadPerson(XmlReader reader, SyndicationPerson person)
864void ReadXml(XmlReader reader, SyndicationFeed result)
System\ServiceModel\Syndication\ServiceDocumentFormatter.cs (10)
40public abstract bool CanRead(XmlReader reader);
41public abstract void ReadFrom(XmlReader reader);
121protected static void LoadElementExtensions(XmlReader reader, CategoriesDocument categories, int maxExtensionSize)
130protected static void LoadElementExtensions(XmlReader reader, ResourceCollectionInfo collection, int maxExtensionSize)
139protected static void LoadElementExtensions(XmlReader reader, Workspace workspace, int maxExtensionSize)
148protected static void LoadElementExtensions(XmlReader reader, ServiceDocument document, int maxExtensionSize)
193protected static bool TryParseElement(XmlReader reader, ResourceCollectionInfo collection, string version)
202protected static bool TryParseElement(XmlReader reader, ServiceDocument document, string version)
211protected static bool TryParseElement(XmlReader reader, Workspace workspace, string version)
220protected static bool TryParseElement(XmlReader reader, CategoriesDocument categories, string version)
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (16)
48public abstract bool CanRead(XmlReader reader);
50public abstract void ReadFrom(XmlReader reader);
122internal static protected void LoadElementExtensions(XmlReader reader, SyndicationFeed feed, int maxExtensionSize)
131internal static protected void LoadElementExtensions(XmlReader reader, SyndicationItem item, int maxExtensionSize)
140internal static protected void LoadElementExtensions(XmlReader reader, SyndicationCategory category, int maxExtensionSize)
149internal static protected void LoadElementExtensions(XmlReader reader, SyndicationLink link, int maxExtensionSize)
158internal static protected void LoadElementExtensions(XmlReader reader, SyndicationPerson person, int maxExtensionSize)
232internal static protected bool TryParseContent(XmlReader reader, SyndicationItem item, string contentType, string version, out SyndicationContent content)
237internal static protected bool TryParseElement(XmlReader reader, SyndicationFeed feed, string version)
246internal static protected bool TryParseElement(XmlReader reader, SyndicationItem item, string version)
255internal static protected bool TryParseElement(XmlReader reader, SyndicationCategory category, string version)
264internal static protected bool TryParseElement(XmlReader reader, SyndicationLink link, string version)
273internal static protected bool TryParseElement(XmlReader reader, SyndicationPerson person, string version)
392internal static void CreateBufferIfRequiredAndWriteNode(ref XmlBuffer buffer, ref XmlDictionaryWriter extWriter, XmlReader reader, int maxExtensionSize)
465internal static void MoveToStartElement(XmlReader reader)
538internal static void TraceSyndicationElementIgnoredOnRead(XmlReader reader)
System\ServiceModel\Syndication\SyndicationItemFormatter.cs (11)
49public abstract bool CanRead(XmlReader reader);
51public abstract void ReadFrom(XmlReader reader);
121protected static void LoadElementExtensions(XmlReader reader, SyndicationItem item, int maxExtensionSize)
126protected static void LoadElementExtensions(XmlReader reader, SyndicationCategory category, int maxExtensionSize)
131protected static void LoadElementExtensions(XmlReader reader, SyndicationLink link, int maxExtensionSize)
136protected static void LoadElementExtensions(XmlReader reader, SyndicationPerson person, int maxExtensionSize)
162protected static bool TryParseContent(XmlReader reader, SyndicationItem item, string contentType, string version, out SyndicationContent content)
168protected static bool TryParseElement(XmlReader reader, SyndicationItem item, string version)
173protected static bool TryParseElement(XmlReader reader, SyndicationCategory category, string version)
178protected static bool TryParseElement(XmlReader reader, SyndicationLink link, string version)
183protected static bool TryParseElement(XmlReader reader, SyndicationPerson person, string version)