public virtual void SetNullFlavor(string propertyName, Ca.Infoway.Messagebuilder.Domainvalue.NullFlavor nullFlavor) { object field = GetField(propertyName); if (field is BareANY) { ((BareANY)field).NullFlavor = nullFlavor; } else { if (field is MessagePartBean) { ((MessagePartBean)field).NullFlavor = nullFlavor; } else { throw new InvalidOperationException("Could not find property " + propertyName + " in order to set nullFlavor"); } } }
public virtual bool SetNullFlavorInSet(string propertyName, object valueInSet, Ca.Infoway.Messagebuilder.Domainvalue.NullFlavor nullFlavor) { return(SetMetadataInCollection(propertyName, -1, valueInSet, nullFlavor, false)); }
public virtual bool SetNullFlavorInList(string propertyName, int indexInList, Ca.Infoway.Messagebuilder.Domainvalue.NullFlavor nullFlavor) { return(SetMetadataInCollection(propertyName, indexInList, null, nullFlavor, false)); }