1 write to contentProperty
System.Workflow.ComponentModel (1)
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (1)
2889
this.
contentProperty
= GetContentProperty(this.serializationManager, this.parentObject);
36 references to contentProperty
System.Workflow.ComponentModel (36)
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (36)
2890
if (this.
contentProperty
!= null)
2892
this.contentPropertySerializer = this.serializationManager.GetSerializer(this.
contentProperty
.PropertyType, typeof(WorkflowMarkupSerializer)) as WorkflowMarkupSerializer;
2901
contentPropertyValue = this.
contentProperty
.GetValue(this.parentObject, null);
2903
else if (!this.
contentProperty
.PropertyType.IsValueType &&
2904
!this.
contentProperty
.PropertyType.IsPrimitive &&
2905
this.
contentProperty
.PropertyType != typeof(string) &&
2906
!IsMarkupExtension(this.
contentProperty
.PropertyType) &&
2907
this.
contentProperty
.CanWrite)
2909
WorkflowMarkupSerializer serializer = serializationManager.GetSerializer(this.
contentProperty
.PropertyType, typeof(WorkflowMarkupSerializer)) as WorkflowMarkupSerializer;
2912
serializationManager.ReportError(CreateSerializationError(SR.GetString(SR.Error_SerializerNotAvailable, this.
contentProperty
.PropertyType.FullName), reader));
2917
contentPropertyValue = serializer.CreateInstance(serializationManager, this.
contentProperty
.PropertyType);
2921
serializationManager.ReportError(CreateSerializationError(SR.GetString(SR.Error_SerializerCreateInstanceFailed, this.
contentProperty
.PropertyType.FullName, e.Message), reader));
2924
this.
contentProperty
.SetValue(this.parentObject, contentPropertyValue, null);
2943
this.serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerNotAvailableForSerialize, this.
contentProperty
.PropertyType.FullName)));
2951
if (reader != null && this.
contentProperty
!= null && this.contentPropertySerializer != null)
2955
object contentPropertyValue = this.
contentProperty
.GetValue(this.parentObject, null);
2970
return this.
contentProperty
;
2977
if (this.
contentProperty
!= null)
2978
value = this.
contentProperty
.GetValue(this.parentObject, null);
2989
if (this.
contentProperty
== null)
3007
object propertyValue = this.
contentProperty
.GetValue(this.parentObject, null);
3008
if (CollectionMarkupSerializer.IsValidCollectionType(this.
contentProperty
.PropertyType))
3012
this.serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_ContentPropertyCanNotBeNull, this.
contentProperty
.Name, this.parentObject.GetType().FullName)));
3033
if (!this.
contentProperty
.CanWrite)
3035
this.serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_ContentPropertyNoSetter, this.
contentProperty
.Name, this.parentObject.GetType()), contents[0].LineNumber, contents[0].LinePosition));
3040
this.serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_ContentPropertyNoMultipleContents, this.
contentProperty
.Name, this.parentObject.GetType()), contents[1].LineNumber, contents[1].LinePosition));
3043
if (!this.
contentProperty
.PropertyType.IsAssignableFrom(content.GetType()) && typeof(string).IsAssignableFrom(content.GetType()))
3047
content = this.contentPropertySerializer.DeserializeFromString(this.serializationManager, this.
contentProperty
.PropertyType, content as string);
3059
this.serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_ContentCanNotBeConverted, content as string,
contentProperty
.Name, this.parentObject.GetType().FullName, this.
contentProperty
.PropertyType.FullName), contents[0].LineNumber, contents[0].LinePosition));
3061
else if (!
contentProperty
.PropertyType.IsAssignableFrom(content.GetType()))
3063
this.serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_ContentPropertyValueInvalid, content.GetType(), this.
contentProperty
.Name, this.
contentProperty
.PropertyType.FullName), contents[0].LineNumber, contents[0].LinePosition));
3069
if (this.
contentProperty
.PropertyType == typeof(string))
3071
content = new WorkflowMarkupSerializer().DeserializeFromString(this.serializationManager, this.
contentProperty
.PropertyType, content as string);
3074
this.
contentProperty
.SetValue(this.parentObject, content, null);