Esempio n. 1
0
 protected OptimizationAlgorithm(string name, string displayName)
 {
     Name                   = name;
     DisplayName            = displayName;
     Properties             = new OptimizationAlgorithmProperties(Name);
     _extendedPropertyStore = new ExtendedPropertyStore <T>(Properties);
 }
        public static void ConfigureProperty <T, U>(this ExtendedPropertyStore <T> propertyStore, Expression <Func <T, U> > propertyNameExpression, string fullName = null, string description = null)
        {
            var extendedProperty = propertyStore.Property(propertyNameExpression);

            if (!string.IsNullOrEmpty(fullName))
            {
                extendedProperty.FullName = fullName;
            }

            if (!string.IsNullOrEmpty(description))
            {
                extendedProperty.Description = description;
            }
        }
Esempio n. 3
0
 protected override void Context()
 {
     _extendedProperties = new ExtendedProperties();
     sut = new ExtendedPropertyStore <IParameter>(_extendedProperties);
 }