Inheritance: BaseElement
示例#1
0
 public static Object GetEncoding(XmlDeclaration/*!*/ self)
 {
     var data = self.GetData<AttributeData>();
     if (data.AttrIsEmpty) {
         return null;
     }
     Object value;
     data.AttrAsHash.TryGetValue(self._encoding, out value);
     return value;
 }
示例#2
0
 public static void SetStandalone(RubyContext/*!*/ context, XmlDeclaration/*!*/ self, Object/*!*/ standalone)
 {
     var data = self.GetData<AttributeData>();
     if (data.AttrIsEmpty) {
         data.Attr = new Hash(context);
     }
     data.AttrAsHash[self._standalone] = standalone;
 }
示例#3
0
 public static void SetVersion(RubyContext/*!*/ context, XmlDeclaration/*!*/ self, Object/*!*/ version)
 {
     var data = self.GetData<AttributeData>();
     if (data.AttrIsEmpty) {
         data.Attr = new Hash(context);
     }
     data.AttrAsHash[self._version] = version;
 }
示例#4
0
 public static void SetEncoding(RubyContext/*!*/ context, XmlDeclaration/*!*/ self, Object/*!*/ encoding)
 {
     var data = self.GetData<AttributeData>();
     if (data.AttrIsEmpty) {
         data.Attr = new Hash(context);
     }
     data.AttrAsHash[self._encoding] = encoding;
 }