public override ICollection Deserialize(SerializationStore store) { if (store == null) { throw new ArgumentNullException("store"); } WorkflowMarkupSerializationStore xomlStore = store as WorkflowMarkupSerializationStore; if (xomlStore == null) { throw new InvalidOperationException(SR.GetString(SR.Error_UnknownSerializationStore)); } return((ICollection)xomlStore.Deserialize(this.serviceProvider)); }
public override void Serialize(SerializationStore store, object value) { if (store == null) { throw new ArgumentNullException("store"); } if (value == null) { throw new ArgumentNullException("value"); } WorkflowMarkupSerializationStore xomlStore = store as WorkflowMarkupSerializationStore; if (xomlStore == null) { throw new InvalidOperationException(SR.GetString(SR.Error_UnknownSerializationStore)); } xomlStore.AddObject(value); }
public override void DeserializeTo(SerializationStore store, IContainer container, bool validateRecycledTypes, bool applyDefaults) { if (store == null) { throw new ArgumentNullException("store"); } if (container == null) { throw new ArgumentNullException("container"); } WorkflowMarkupSerializationStore store2 = store as WorkflowMarkupSerializationStore; if (store2 == null) { throw new InvalidOperationException(SR.GetString("Error_UnknownSerializationStore")); } store2.DeserializeTo(this.serviceProvider, container); }
public override ICollection Deserialize(SerializationStore store, IContainer container) { if (store == null) { throw new ArgumentNullException("store"); } if (container == null) { throw new ArgumentNullException("container"); } WorkflowMarkupSerializationStore store2 = store as WorkflowMarkupSerializationStore; if (store2 == null) { throw new InvalidOperationException(SR.GetString("Error_UnknownSerializationStore")); } return(store2.Deserialize(this.serviceProvider, container)); }
public override void SerializeMember(SerializationStore store, object owningObject, MemberDescriptor member) { if (store == null) { throw new ArgumentNullException("store"); } if (owningObject == null) { throw new ArgumentNullException("owningObject"); } if (member == null) { throw new ArgumentNullException("member"); } WorkflowMarkupSerializationStore xomlStore = store as WorkflowMarkupSerializationStore; if (xomlStore == null) { throw new InvalidOperationException(SR.GetString(SR.Error_UnknownSerializationStore)); } xomlStore.AddMember(owningObject, member); }
internal LocalDesignerSerializationManager(WorkflowMarkupSerializationStore store, IServiceProvider provider) : base(provider) { this.store = store; }