Example #1
0
        internal static IProperties TryCreate(object context)
        {
            var indexer = ReflectionPropertyProvider.FindIndexerProperty(context.GetType());

            if (indexer != null)
            {
                return(new ReflectionPropertiesUsingIndexer(context, indexer));
            }
            return(null);
        }
Example #2
0
        public static ReflectionPropertyProviderUsingIndexer TryCreate(object context)
        {
            Debug.Assert(context != null);
            var indexer = ReflectionPropertyProvider.FindIndexerProperty(context.GetType());

            if (indexer != null)
            {
                return(new ReflectionPropertyProviderUsingIndexer(context, indexer));
            }
            return(null);
        }
Example #3
0
 protected PropertyProvider()
 {
     _reflection = new ReflectionPropertyProvider(this);
 }