Beispiel #1
0
        protected EntityItemSimpleBaseType CreateEntityItemType(EntityItemTypes entityItemType, string entityValue)
        {
            if (entityItemType.Equals(EntityItemTypes.String))
                return new EntityItemStringType() { Value = entityValue };

            if (entityItemType.Equals(EntityItemTypes.Integer))
                return new EntityItemIntType() { Value = entityValue };

            return null;
        }
        protected EntityItemSimpleBaseType CreateEntityItemType(EntityItemTypes entityItemType, string entityValue)
        {
            if (entityItemType.Equals(EntityItemTypes.String))
            {
                return new EntityItemStringType()
                       {
                           Value = entityValue
                       }
            }
            ;

            if (entityItemType.Equals(EntityItemTypes.Integer))
            {
                return new EntityItemIntType()
                       {
                           Value = entityValue
                       }
            }
            ;

            return(null);
        }