public override void SetValue(object o, object value)
 {
     XmlDataSourceNodeDescriptor nd = o as XmlDataSourceNodeDescriptor;
     if (nd != null && nd.Node.Attributes != null) {
         XmlAttribute a = nd.Node.Attributes [Name];
         if (a != null) a.Value = value.ToString ();
     }
 }
 public override object GetValue(object o)
 {
     XmlDataSourceNodeDescriptor nd = o as XmlDataSourceNodeDescriptor;
     if (nd != null && nd.Node.Attributes != null) {
         XmlAttribute a = nd.Node.Attributes [Name];
         if (a != null) return a.Value;
     }
     return String.Empty;
 }
            public override object GetValue(object o)
            {
                XmlDataSourceNodeDescriptor descriptor = o as XmlDataSourceNodeDescriptor;

                if (descriptor != null)
                {
                    XmlAttributeCollection attributes = descriptor._node.Attributes;
                    if (attributes != null)
                    {
                        XmlAttribute attribute = attributes[this._name];
                        if (attribute != null)
                        {
                            return(attribute.Value);
                        }
                    }
                }
                return(string.Empty);
            }
Exemplo n.º 4
0
            public override object GetValue(object o)
            {
                XmlDataSourceNodeDescriptor node = o as XmlDataSourceNodeDescriptor;

                if (node != null)
                {
                    XmlAttributeCollection attrs = node._node.Attributes;

                    if (attrs != null)
                    {
                        XmlAttribute attr = attrs[_name];
                        if (attr != null)
                        {
                            return(attr.Value);
                        }
                    }
                }

                return(String.Empty);
            }