예제 #1
0
        private object GetSourceValue(object src, IDescribeMappableProperty sourceProperty)
        {
            var collectionSpec = new SupportedCollectionTypeSpecification();

            if (collectionSpec.IsSatisfiedBy(src) == false)
            {
                return(invoke.GetValue(sourceProperty.Name, src));
            }
            return(collectionSpec.GetValue(src, sourceProperty as IDescribePropertyElement));
        }
예제 #2
0
        private object GetSourceValue(object src, IDescribeMappableProperty sourceProperty)
        {
            var collectionSpec = new SupportedCollectionTypeSpecification();

            if (collectionSpec.IsSatisfiedBy(src) == false)
            {
                return invoke.GetValue(sourceProperty.Name, src);
            }
            return collectionSpec.GetValue(src, sourceProperty as IDescribePropertyElement);
        }