System.Xml.Tests.TC_SchemaSet_Add_Schema.XmlCachedSchemaSetResolver.GetEntity C# (CSharp) Méthode

GetEntity() public méthode

public GetEntity ( Uri absoluteUri, string role, Type ofObjectToReturn ) : object
absoluteUri System.Uri
role string
ofObjectToReturn System.Type
Résultat object
            public override object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn)
            {
                if (ofObjectToReturn == null || ofObjectToReturn == typeof(XmlSchema))
                {
                    XmlSchema schema;
                    if (this.schemas.TryGetValue(absoluteUri, out schema))
                        return schema;
                }
                return null;
            }
        }
TC_SchemaSet_Add_Schema.XmlCachedSchemaSetResolver