internal static IProperties TryCreate(object context) { var indexer = ReflectionPropertyProvider.FindIndexerProperty(context.GetType()); if (indexer != null) { return(new ReflectionPropertiesUsingIndexer(context, indexer)); } return(null); }
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); }