Microsoft.Xades.SignedDataObjectProperties.HasChanged C# (CSharp) Method

HasChanged() public method

Check to see if something has changed in this instance and needs to be serialized
public HasChanged ( ) : bool
return bool
		public bool HasChanged()
		{
			bool retVal = false;

			if (this.dataObjectFormatCollection.Count > 0)
			{
				retVal = true;
			}

			if (this.commitmentTypeIndicationCollection.Count > 0)
			{
				retVal = true;
			}

			if (this.allDataObjectsTimeStampCollection.Count > 0)
			{
				retVal = true;
			}

			if (this.individualDataObjectsTimeStampCollection.Count > 0)
			{
				retVal = true;
			}

			return retVal;
		}

Usage Example

Example #1
0
        /// <summary>
        /// Check to see if something has changed in this instance and needs to be serialized
        /// </summary>
        /// <returns>Flag indicating if a member needs serialization</returns>
        public bool HasChanged()
        {
            bool retVal = !String.IsNullOrEmpty(id) || (signedSignatureProperties != null && signedSignatureProperties.HasChanged()) || (signedDataObjectProperties != null && signedDataObjectProperties.HasChanged());

            return(retVal);
        }