Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public static SendProp GetProperty(this IStaticPropertySet set, string propName)
        {
            var retVal = set.Properties.SingleOrDefault(x => x.Definition.FullName == propName);

            return(retVal);
        }