setBinaryValue() public method

public setBinaryValue ( byte value ) : void
value byte
return void
Esempio n. 1
0
        public cXmlProperty getBinaryNodeProperty(XmlNode node, string propertyName)
        {
            XmlAttribute attr = null;
            cXmlProperty o    = new cXmlProperty();

            byte[] vBuffer = null;

            XmlElement element = (XmlElement)node;

            attr = element.GetAttributeNode(propertyName);
            if (attr != null)
            {
                vBuffer = System.Convert.FromBase64String(attr.Value);
            }
            else
            {
                G.redim(ref vBuffer, 0);
            }

            o.setBinaryValue(vBuffer);
            return(o);
        }
Esempio n. 2
0
        public cXmlProperty getBinaryNodeProperty(XmlNode node, string propertyName)
        {
            XmlAttribute attr = null;
            cXmlProperty o = new cXmlProperty();
            byte[] vBuffer = null;

            XmlElement element = (XmlElement)node;
            attr = element.GetAttributeNode(propertyName);
            if (attr != null)
            {
                vBuffer = System.Convert.FromBase64String(attr.Value);
            }
            else
            {
                G.redim(ref vBuffer, 0);
            }

            o.setBinaryValue(vBuffer);
            return o;
        }