public static SendProp GetProperty(this IStaticPropertySet set, SendPropDefinition def) { var retVal = set.Properties.SingleOrDefault(x => x.Definition == def); Debug.Assert(retVal == null || ReferenceEquals(retVal.Definition, def)); Debug.Assert(retVal == null || ReferenceEquals(retVal.Entity, set)); return(retVal); }
public static SendProp GetProperty(this IStaticPropertySet set, string propName) { var retVal = set.Properties.SingleOrDefault(x => x.Definition.FullName == propName); return(retVal); }