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

            return(retVal);
        }