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;
		}
예제 #2
0
 /// <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);
 }
예제 #3
0
 /// <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);
 }
예제 #4
0
 /// <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);
 }
예제 #6
0
 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);
 }
예제 #8
0
 /// <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);
 }
예제 #9
0
        public void SerializeContents(ref object value, ISerializationWriter writer)
        {
            T typed = (T)value;

            SerializeContents(ref typed, writer);
        }
예제 #10
0
 public virtual void SerializeContents(ref T value, ISerializationWriter writer)
 {
 }
예제 #11
0
 public virtual void SerializeBacklinks(ref T value, ISerializationWriter writer)
 {
 }
예제 #12
0
 /// <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);
 }
예제 #14
0
 /// <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);
 }
예제 #15
0
 /// <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);
 }
예제 #16
0
 /// <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);
 }
예제 #17
0
        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);
 }
예제 #19
0
 public virtual void SerializeConstructor(ref T value, ISerializationWriter writer)
 {
 }
예제 #20
0
 /// <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);
 }
예제 #21
0
 /// <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);
 }
예제 #23
0
 /// <inheritdoc/>
 public override void SerializeData(ISerializationWriter serializationWriter)
 {
     serializationWriter.WriteProperty(this.InternalData);
 }
 /// <inheritdoc/>
 public abstract void SerializeData(ISerializationWriter serializationWriter);
예제 #25
0
 /// <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);
 }
예제 #26
0
 /// <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);
 }
예제 #27
0
 public override void SerializeConstructor(ref T value, ISerializationWriter writer)
 {
     writer.WritePrimitive <T>(value);
 }
예제 #28
0
 /// <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);
 }