public SerializationWriterContext(ISerializationWriter writer, SerializationContext serializationContext, object container, object value, MemberInfo member, int index, int depth, bool isCircularReference, bool isCollection) { if(writer == null) throw new ArgumentNullException("writer"); if(serializationContext == null) throw new ArgumentNullException("serializationContext"); _writer = writer; _serializationContext = serializationContext; _value = value; _index = index; _depth = depth; _member = member; _container = container; _terminated = value == null || value.GetType().IsPrimitive; _isCircularReference = isCircularReference; _isCollection = isCollection; }
/// <summary> /// Serializes information the current object /// <param name="writer">Serialization writer to use to serialize this model</param> /// </summary> public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues <ServicePrincipal>("value", Value); writer.WriteAdditionalData(AdditionalData); }
/// <summary> /// Serializes information the current object /// <param name="writer">Serialization writer to use to serialize this model</param> /// </summary> public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteByteArrayValue("value", Value); writer.WriteAdditionalData(AdditionalData); }
/// <summary> /// Serializes information the current object /// <param name="writer">Serialization writer to use to serialize this model</param> /// </summary> public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("priority", Priority); writer.WriteAdditionalData(AdditionalData); }
/// <summary> /// Serializes information the current object /// <param name="writer">Serialization writer to use to serialize this model</param> /// </summary> public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue <ApiSdk.Models.Chat>("chat", Chat); }
public void SerializeData(ISerializationWriter serializationWriter) { }
/// <summary> /// Serializes information the current object /// <param name="writer">Serialization writer to use to serialize this model</param> /// </summary> public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); }
/// <summary> /// Serializes information the current object /// <param name="writer">Serialization writer to use to serialize this model</param> /// </summary> public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues <TargetedManagedAppPolicyAssignment>("assignments", Assignments); writer.WriteAdditionalData(AdditionalData); }
public void SerializeContents(ref object value, ISerializationWriter writer) { T typed = (T)value; SerializeContents(ref typed, writer); }
public virtual void SerializeContents(ref T value, ISerializationWriter writer) { }
public virtual void SerializeBacklinks(ref T value, ISerializationWriter writer) { }
/// <summary> /// Serializes information the current object /// <param name="writer">Serialization writer to use to serialize this model</param> /// </summary> public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues <ApiSdk.Models.Permission>("value", Value); writer.WriteAdditionalData(AdditionalData); }
/// <summary> /// Serializes information the current object /// <param name="writer">Serialization writer to use to serialize this model</param> /// </summary> public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("color", Color); }
/// <summary> /// Serializes information the current object /// <param name="writer">Serialization writer to use to serialize this model</param> /// </summary> public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues <ConversationMember>("values", Values); writer.WriteAdditionalData(AdditionalData); }
/// <summary> /// Serializes information the current object /// <param name="writer">Serialization writer to use to serialize this model</param> /// </summary> public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues <OnenotePatchContentCommand>("commands", Commands); writer.WriteAdditionalData(AdditionalData); }
/// <summary> /// Serializes information the current object /// <param name="writer">Serialization writer to use to serialize this model</param> /// </summary> public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue <ApiSdk.Models.AttachmentItem>("attachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); }
public void SerializeBacklinks(ref object value, ISerializationWriter writer) { T typed = (T)value; SerializeBacklinks(ref typed, writer); }
/// <summary> /// Serializes information the current object /// <param name="writer">Serialization writer to use to serialize this model</param> /// </summary> public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues <MobileAppAssignment>("mobileAppAssignments", MobileAppAssignments); writer.WriteAdditionalData(AdditionalData); }
public virtual void SerializeConstructor(ref T value, ISerializationWriter writer) { }
/// <summary> /// Serializes information the current object /// <param name="writer">Serialization writer to use to serialize this model</param> /// </summary> public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isSyncedFromOnPremises", IsSyncedFromOnPremises); writer.WriteAdditionalData(AdditionalData); }
/// <summary> /// Serializes information the current object /// <param name="writer">Serialization writer to use to serialize this model</param> /// </summary> public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue <ApiSdk.Models.Post>("post", Post); writer.WriteAdditionalData(AdditionalData); }
/// <summary> /// Serializes information the current object /// <param name="writer">Serialization writer to use to serialize this model</param> /// </summary> public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); }
/// <inheritdoc/> public override void SerializeData(ISerializationWriter serializationWriter) { serializationWriter.WriteProperty(this.InternalData); }
/// <inheritdoc/> public abstract void SerializeData(ISerializationWriter serializationWriter);
/// <summary> /// Serializes information the current object /// <param name="writer">Serialization writer to use to serialize this model</param> /// </summary> public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isPicture", IsPicture); writer.WriteAdditionalData(AdditionalData); }
/// <summary> /// Serializes information the current object /// <param name="writer">Serialization writer to use to serialize this model</param> /// </summary> public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue <AttendeeType>("type", Type); }
public override void SerializeConstructor(ref T value, ISerializationWriter writer) { writer.WritePrimitive <T>(value); }
/// <summary> /// Serializes information the current object /// <param name="writer">Serialization writer to use to serialize this model</param> /// </summary> public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("comment", Comment); writer.WriteAdditionalData(AdditionalData); }
/// <inheritdoc/> public void SerializeData(ISerializationWriter serializationWriter) { serializationWriter.WriteProperty(this.Data); }
/// <summary> /// Serializes information the current object /// <param name="writer">Serialization writer to use to serialize this model</param> /// </summary> public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues <string>("groupIds", GroupIds); writer.WriteAdditionalData(AdditionalData); }
/// <summary> /// Serializes information the current object /// <param name="writer">Serialization writer to use to serialize this model</param> /// </summary> public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues <EnrollmentConfigurationAssignment>("enrollmentConfigurationAssignments", EnrollmentConfigurationAssignments); writer.WriteAdditionalData(AdditionalData); }