Inheritance: BaseElement
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }