Пример #1
0
        private static EnumMember CreateInternal(
            string name,
            object value,
            IEnumerable <MetadataProperty> metadataProperties)
        {
            EnumMember enumMember = new EnumMember(name, value);

            if (metadataProperties != null)
            {
                enumMember.AddMetadataProperties(metadataProperties.ToList <MetadataProperty>());
            }
            enumMember.SetReadOnly();
            return(enumMember);
        }
Пример #2
0
        private static EnumMember CreateInternal(
            string name,
            object value,
            IEnumerable <MetadataProperty> metadataProperties)
        {
            var instance = new EnumMember(name, value);

            if (metadataProperties != null)
            {
                instance.AddMetadataProperties(metadataProperties.ToList());
            }

            instance.SetReadOnly();

            return(instance);
        }
Пример #3
0
        private static EnumMember CreateInternal(
            string name,
            object value,
            IEnumerable<MetadataProperty> metadataProperties)
        {
            var instance = new EnumMember(name, value);

            if (metadataProperties != null)
            {
                instance.AddMetadataProperties(metadataProperties.ToList());
            }

            instance.SetReadOnly();

            return instance;
        }