2 writes to _mode
PresentationFramework (2)
System\Windows\Data\ObjectDataProvider.cs (2)
105
_mode
= (value == null) ? SourceMode.NoSource : SourceMode.FromType;
158
_mode
= (value == null) ? SourceMode.NoSource : SourceMode.FromInstance;
9 references to _mode
PresentationFramework (9)
System\Windows\Data\ObjectDataProvider.cs (9)
103
if (
_mode
== SourceMode.FromInstance)
126
return (
_mode
== SourceMode.FromType) && (ObjectType != null);
156
if (
_mode
== SourceMode.FromType)
198
return (
_mode
== SourceMode.FromInstance) && (ObjectInstance != null);
240
return (
_mode
== SourceMode.FromType) && (_constructorParameters.Count > 0);
351
Debug.Assert(
_mode
!= SourceMode.FromType);
385
if (
_mode
== SourceMode.NoSource || _objectType == null)
394
if (_needNewInstance && (
_mode
== SourceMode.FromType))
616
Invariant.Assert (
_mode
!= SourceMode.FromInstance);