コード例 #1
0
        public byte GetByte(string name)
        {
            Type   foundType;
            object value = GetElement(name, out foundType) !;

            return(ReferenceEquals(foundType, typeof(byte)) ? (byte)value : _converter.ToByte(value));
        }
コード例 #2
0
        public byte GetByte(string name)
        {
#if NOT_PFX
            object value = GetValue(name, typeof(System.Byte));
            return(converter.ToByte(value));
#else
            throw new NotSupportedException();
#endif
        }
コード例 #3
0
ファイル: SerializationInfo.cs プロジェクト: zodsoft/coreclr
        public byte GetByte(String name)
        {
            Type   foundType;
            Object value;

            value = GetElement(name, out foundType);
            if (Object.ReferenceEquals(foundType, typeof(byte)))
            {
                return((byte)value);
            }
            return(m_converter.ToByte(value));
        }
コード例 #4
0
        public byte GetByte(string name)
        {
            object value = GetValue(name, typeof(System.Byte));

            return(converter.ToByte(value));
        }
コード例 #5
0
 public byte ToByte(object value)
 {
     return(_impl.ToByte(value));
 }
コード例 #6
0
        public byte GetByte(string name)
        {
            var value = GetValue(name, typeof(byte));

            return(converter.ToByte(value));
        }