示例#1
0
        public PublishedCamera(PublishedCameraProfile profile, PublishedDestination destination)
        {
            if (profile == null)
            throw new ArgumentNullException("profile");
              if (destination == null)
            throw new ArgumentNullException("destination");

              Profile = profile;
              Destination = destination;
        }
        public PublishedCamera(PublishedCameraProfile profile, PublishedDestination destination)
        {
            if (profile == null)
            {
                throw new ArgumentNullException("profile");
            }
            if (destination == null)
            {
                throw new ArgumentNullException("destination");
            }

            Profile     = profile;
            Destination = destination;
        }
        public override bool Equals(object obj)
        {
            bool result = false;

            if (obj != null)
            {
                PublishedCameraProfile other = obj as PublishedCameraProfile;
                if (other != null && this.CameraId == other.CameraId)
                {
                    result = true;
                }
            }

            return(result);
        }