/// <summary> /// Creates an instance of the <see cref="SnpData"/> class with /// specified other item data. /// </summary> /// /// <param name="otherItemData">The other item data.</param> /// internal SnpData(OtherItemData otherItemData) { // Convert an OtherData instance to one of this type. // This is used to convert the OtherItemData instance that was deserialized when an SnpData // instance was created to an instance of this type. Data = otherItemData.Data; ContentEncoding = otherItemData.ContentEncoding; ContentType = otherItemData.ContentType; }
// Convert an OtherData instance to one of this type. // This is used to convert the OtherItemData instance that was deserialized when an ExerciseSamples // instance was created to an instance of this type. internal ExerciseSamplesData(OtherItemData otherItemData) { Data = otherItemData.Data; ContentEncoding = otherItemData.ContentEncoding; ContentType = otherItemData.ContentType; }