C# Class IpRanges.IPRangesParser

Mostrar archivo Open project: hanswolff/ipranges

Public Methods

Method Description
ParseFromResources ( string resourcePrefix = null ) : IEnumerable
ParseFromXml ( Stream stream ) : IPRangesGroup
ParseFromXml ( XmlTextReader reader ) : IPRangesGroup
ParseFromXml ( string xml ) : IPRangesGroup
TryParseFromXml ( XmlTextReader reader, IPRangesGroup &group, Exception &exception ) : bool
TryParseFromXml ( XmlTextReader reader, IPRangesGroup &group, Exception &exception, bool skipIfRootElementNotMatching ) : bool

Private Methods

Method Description
IsDynamicAssembly ( Assembly assembly ) : bool
ReadGroupElement ( XmlReader reader ) : IPRangesGroup
ReadRangeElement ( XmlReader reader ) : IpRanges.IPRange
ReadRegionElement ( XmlReader reader ) : IPRangesRegion

Method Details

ParseFromResources() public static method

public static ParseFromResources ( string resourcePrefix = null ) : IEnumerable
resourcePrefix string
return IEnumerable

ParseFromXml() public static method

public static ParseFromXml ( Stream stream ) : IPRangesGroup
stream Stream
return IPRangesGroup

ParseFromXml() public static method

public static ParseFromXml ( XmlTextReader reader ) : IPRangesGroup
reader System.Xml.XmlTextReader
return IPRangesGroup

ParseFromXml() public static method

public static ParseFromXml ( string xml ) : IPRangesGroup
xml string
return IPRangesGroup

TryParseFromXml() public static method

public static TryParseFromXml ( XmlTextReader reader, IPRangesGroup &group, Exception &exception ) : bool
reader System.Xml.XmlTextReader
group IPRangesGroup
exception System.Exception
return bool

TryParseFromXml() public static method

public static TryParseFromXml ( XmlTextReader reader, IPRangesGroup &group, Exception &exception, bool skipIfRootElementNotMatching ) : bool
reader System.Xml.XmlTextReader
group IPRangesGroup
exception System.Exception
skipIfRootElementNotMatching bool
return bool