コード例 #1
0
ファイル: XmlFilter.cs プロジェクト: vdimensions/sax.net
 public virtual object GetProperty(string name)
 {
     if (_parent != null)
     {
         return(_parent.GetProperty(name));
     }
     throw new SAXNotRecognizedException("Property: " + name);
 }
コード例 #2
0
 /// <summary>Returns an <see cref="IProperty&lt;T>"/> interface for the property
 /// identified by <c>name</c>.</summary>
 /// <remarks>Difference to Java: Will throw <see cref="SaxException"/>
 /// if parent is <c>null</c>.</remarks>
 /// <seealso href="http://www.saxproject.org/apidoc/org/xml/sax/XMLReader.html#getProperty(java.lang.String)">
 /// getProperty(java.lang.String) on www.saxproject.org</seealso>
 public IProperty <T> GetProperty <T>(string name)
 {
     CheckParent();
     return(parent.GetProperty <T>(name));
 }