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)
105
if (
_mode
== SourceMode.FromInstance)
128
return (
_mode
== SourceMode.FromType) && (ObjectType != null);
158
if (
_mode
== SourceMode.FromType)
200
return (
_mode
== SourceMode.FromInstance) && (ObjectInstance != null);
242
return (
_mode
== SourceMode.FromType) && (_constructorParameters.Count > 0);
353
Debug.Assert(
_mode
!= SourceMode.FromType);
387
if (
_mode
== SourceMode.NoSource || _objectType == null)
396
if (_needNewInstance && (
_mode
== SourceMode.FromType))
610
Invariant.Assert (
_mode
!= SourceMode.FromInstance);