/// <summary> /// Gets the target target <see cref="CloudFile"/> object of a <see cref="SerializableCloudFile"/> object. /// </summary> /// <param name="fileSerialization">A <see cref="SerializableCloudFile"/> object.</param> /// <returns>The target <see cref="CloudFile"/> object.</returns> internal static CloudFile GetFile(SerializableCloudFile fileSerialization) { if (null == fileSerialization) { return(null); } return(fileSerialization.File); }
/// <summary> /// Sets the target target <see cref="CloudFile"/> object of a <see cref="SerializableCloudFile"/> object. /// </summary> /// <param name="fileSerialization">A <see cref="SerializableCloudFile"/> object.</param> /// <param name="value">A <see cref="CloudFile"/> object.</param> internal static void SetFile(ref SerializableCloudFile fileSerialization, CloudFile value) { if (null == fileSerialization && null == value) { return; } if (null != fileSerialization) { fileSerialization.File = value; } else { fileSerialization = new SerializableCloudFile() { File = value }; } }