2 writes to propertyInfo
System.Activities (2)
System\Activities\Expressions\PropertyReference.cs (2)
119
this.
propertyInfo
= propertyInfo;
178
set { this.
propertyInfo
= value; }
13 references to propertyInfo
System.Activities (13)
System\Activities\Expressions\PropertyReference.cs (13)
135
if (!this.
propertyInfo
.GetGetMethod().IsStatic && this.owner == null)
137
throw FxTrace.Exception.AsError(new InvalidOperationException(SR.NullReferencedMemberAccess(this.
propertyInfo
.DeclaringType.Name, this.
propertyInfo
.Name)));
142
if (this.
propertyInfo
.GetGetMethod() == null && TypeHelper.AreTypesCompatible(this.
propertyInfo
.DeclaringType, typeof(Location)) == false)
144
throw FxTrace.Exception.AsError(new InvalidOperationException(SR.WriteonlyPropertyCannotBeRead(this.
propertyInfo
.DeclaringType, this.
propertyInfo
.Name)));
147
return (T)this.
propertyInfo
.GetValue(this.owner, null);
153
if (!this.
propertyInfo
.GetSetMethod().IsStatic && this.owner == null)
155
throw FxTrace.Exception.AsError(new InvalidOperationException(SR.NullReferencedMemberAccess(this.
propertyInfo
.DeclaringType.Name, this.
propertyInfo
.Name)));
162
this.
propertyInfo
.SetValue(this.owner, value, null);
177
get { return this.
propertyInfo
; }