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)
98
if (
_mode
== SourceMode.FromInstance)
121
return (
_mode
== SourceMode.FromType) && (ObjectType != null);
151
if (
_mode
== SourceMode.FromType)
193
return (
_mode
== SourceMode.FromInstance) && (ObjectInstance != null);
235
return (
_mode
== SourceMode.FromType) && (_constructorParameters.Count > 0);
346
Debug.Assert(
_mode
!= SourceMode.FromType);
380
if (
_mode
== SourceMode.NoSource || _objectType == null)
389
if (_needNewInstance && (
_mode
== SourceMode.FromType))
611
Invariant.Assert (
_mode
!= SourceMode.FromInstance);