Example #1
0
        public static string ToEquivalenceString(this IDictionary <Parameter, OdcmProperty> parameterToPropertyMap, string instanceName)
        {
            if (parameterToPropertyMap == null)
            {
                return("true");
            }

            var sb = new List <string>();

            foreach (var parameter in parameterToPropertyMap.Keys)
            {
                sb.Add(String.Format("{0}.{1} == {2}", instanceName,
                                     NamesService.GetPropertyName(parameterToPropertyMap[parameter]), parameter.Name));
            }

            return(String.Join(" && ", sb));
        }
Example #2
0
 protected Property(string name)
 {
     Name = NamesService.GetPropertyName(name);
 }