Example #1
0
        /// <summary>
        /// Determines whether the specified <see cref="object"/> is equal to the current <see cref="CameraFileEntry"/>.
        /// </summary>
        /// <param name="obj">The <see cref="object"/> to compare with the current <see cref="CameraFileEntry"/></param>
        /// <returns>true if the specified <see cref="object"/> is equal to the current <see cref="CameraFileEntry"/>; otherwise, false.</returns>
        public override bool Equals(object obj)
        {
            // If objects have different types, return false.
            if (obj.GetType() != GetType())
            {
                return(false);
            }

            // If both are null, or both are same instance, return true.
            if (object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            CameraFileEntry cv = obj as CameraFileEntry;

            if (cv == null)
            {
                return(false);
            }

            return(Reference == cv.Reference);
        }
 public Task FormatVolume(CameraFileEntry volume);