internal static PropertyValidatorParameterDescriptorCollection PreparePropertyValidatorParametDescriptorCollection() { PropertyValidatorParameterDescriptorCollection pvpdCollection = new PropertyValidatorParameterDescriptorCollection(); pvpdCollection.Add(PreparePropertyValidatorParameterIntegerDescriptor()); pvpdCollection.Add(PreparePropertyValidatorParameterDateTimeDescriptor()); return pvpdCollection; }
internal static PropertyValidatorParameterDescriptorCollection PreparePropertyValidatorParametDescriptorCollection() { PropertyValidatorParameterDescriptorCollection pvpdCollection = new PropertyValidatorParameterDescriptorCollection(); pvpdCollection.Add(PreparePropertyValidatorParameterIntegerDescriptor()); pvpdCollection.Add(PreparePropertyValidatorParameterDateTimeDescriptor()); return(pvpdCollection); }
private void AddParameters(XElement elem, PropertyValidatorParameterDescriptorCollection target) { foreach (var item in elem.Elements("parameter")) { target.Add(new PropertyValidatorParameterDescriptor(item.Attribute("paraName").Value, (PropertyDataType)Enum.Parse(typeof(PropertyDataType), item.Attribute("dataType").Value), item.Attribute("paraValue").Value)); } }