2 writes to _mode
PresentationFramework (2)
System\Windows\Data\ObjectDataProvider.cs (2)
100_mode = (value == null) ? SourceMode.NoSource : SourceMode.FromType; 153_mode = (value == null) ? SourceMode.NoSource : SourceMode.FromInstance;
9 references to _mode
PresentationFramework (9)
System\Windows\Data\ObjectDataProvider.cs (9)
98if (_mode == SourceMode.FromInstance) 121return (_mode == SourceMode.FromType) && (ObjectType != null); 151if (_mode == SourceMode.FromType) 193return (_mode == SourceMode.FromInstance) && (ObjectInstance != null); 235return (_mode == SourceMode.FromType) && (_constructorParameters.Count > 0); 346Debug.Assert(_mode != SourceMode.FromType); 380if (_mode == SourceMode.NoSource || _objectType == null) 389if (_needNewInstance && (_mode == SourceMode.FromType)) 611Invariant.Assert (_mode != SourceMode.FromInstance);