Esempio n. 1
0
        public EnumTypeClipboardFormat(EnumType enumType)
            : base(enumType)
        {
            if (enumType == null)
            {
                throw new ArgumentNullException("enumType");
            }

            _name             = enumType.LocalName.Value;
            _underlyingType   = enumType.UnderlyingType.Value;
            _isFlag           = enumType.IsFlags.Value;
            _externalTypeName = enumType.ExternalTypeName.Value;
            _members          = new EnumTypeMembersClipboardFormat(enumType.Members());
        }
        public EnumTypeClipboardFormat(EnumType enumType)
            : base(enumType)
        {
            if (enumType == null)
            {
                throw new ArgumentNullException("enumType");
            }

            _name = enumType.LocalName.Value;
            _underlyingType = enumType.UnderlyingType.Value;
            _isFlag = enumType.IsFlags.Value;
            _externalTypeName = enumType.ExternalTypeName.Value;
            _members = new EnumTypeMembersClipboardFormat(enumType.Members());
        }