コード例 #1
0
        public static XmlEnumContractBuilder <T> RemoveItem <T>(this XmlEnumContractBuilder <T> builder, T value)
            where T : struct, IConvertible
        {
            var longValue = value.ToInt64(CultureInfo.InvariantCulture);

            return(RemoveItem(builder, longValue));
        }
コード例 #2
0
        public static XmlEnumContractBuilder <T> SetItem <T>(this XmlEnumContractBuilder <T> builder, T value, string name)
            where T : struct, IConvertible
        {
            var item = new XmlEnumItem(value.ToInt64(CultureInfo.InvariantCulture), name);

            return(SetItem(builder, item));
        }