2 writes to _mode
PresentationFramework (2)
src\Framework\System\Windows\Data\ObjectDataProvider.cs (2)
107_mode = (value == null) ? SourceMode.NoSource : SourceMode.FromType; 160_mode = (value == null) ? SourceMode.NoSource : SourceMode.FromInstance;
9 references to _mode
PresentationFramework (9)
src\Framework\System\Windows\Data\ObjectDataProvider.cs (9)
105if (_mode == SourceMode.FromInstance) 128return (_mode == SourceMode.FromType) && (ObjectType != null); 158if (_mode == SourceMode.FromType) 200return (_mode == SourceMode.FromInstance) && (ObjectInstance != null); 242return (_mode == SourceMode.FromType) && (_constructorParameters.Count > 0); 353Debug.Assert(_mode != SourceMode.FromType); 387if (_mode == SourceMode.NoSource || _objectType == null) 396if (_needNewInstance && (_mode == SourceMode.FromType)) 610Invariant.Assert (_mode != SourceMode.FromInstance);