/// <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>
        /// 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;
        }
        private AzureFileLocation(SerializationInfo info, StreamingContext context)
        {
            if (info == null)
            {
                throw new System.ArgumentNullException("info");
            }

            this.fileSerializer = (SerializableCloudFile)info.GetValue(AzureFileName, typeof(SerializableCloudFile));
            this.accessCondition = (SerializableAccessCondition)info.GetValue(AccessConditionName, typeof(SerializableAccessCondition));
            this.CheckedAccessCondition = info.GetBoolean(CheckedAccessConditionName);
            this.requestOptions = (SerializableRequestOptions)info.GetValue(RequestOptionsName, typeof(SerializableRequestOptions));
            this.ETag = info.GetString(ETagName);
        }
        /// <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
                };
            }
        }
        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
                };
            }
        }