Exemplo n.º 1
0
        internal static IProperties TryCreate(object context)
        {
            var indexer = ReflectionPropertyProvider.FindIndexerProperty(context.GetType());

            if (indexer != null)
            {
                return(new ReflectionPropertiesUsingIndexer(context, indexer));
            }
            return(null);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 protected PropertyProvider()
 {
     _reflection = new ReflectionPropertyProvider(this);
 }