コード例 #1
0
        private void Initialize()
        {
            var observedProperties  = ObservableProperty.GetObservedProperties();
            var observedCollections = ObservableProperty.GetObservedCollections();

            foreach (var observedProperty in observedProperties)
            {
                IObservableProperty observableProperty = observedProperty.Value;
                runtimeProxies[observedProperty.Key] = (IRuntimeProxy)RuntimeProxyManagerHelper.CreateRuntimeManager(observableProperty, null, IsReadOnly).Implementation;
            }

            foreach (var observedCollection in observedCollections)
            {
                collectionProxies[observedCollection.Key] = CollectionProxy.Create(
                    observedCollection.Value,
                    proxyWrapper,
                    proxyFactory,
                    observableFactory);
            }
        }
コード例 #2
0
 public IPropertyProxy Create(IObservableProperty observableProperty, MethodInterceptions interceptions, bool readOnly = false)
 {
     return(RuntimeProxyManagerHelper.CreateRuntimeManager(observableProperty, interceptions, readOnly));
 }
コード例 #3
0
 public IPropertyProxy Create(IObservableProperty observableProperty, bool readOnly = false)
 {
     return(RuntimeProxyManagerHelper.CreateRuntimeManager(observableProperty, null, readOnly));
 }