/// <summary> /// Creates a new <see cref="NotificationLite"/> instance, copying the property values /// of the <paramref name="original"/> <see cref="NotificationLite"/>. /// </summary> /// <param name="original">The <see cref="NotificationLite"/> to clone.</param> /// <returns><see cref="NotificationLite"/></returns> public static NotificationLite Clone(NotificationLite original) { NotificationLite n = new NotificationLite(); n.Name = original.Name; n.ApplicationName = original.ApplicationName; n.Title = original.Title; n.Description = original.Description; n.Priority = original.Priority; n.Sticky = original.Sticky; n.Duration = original.Duration; n.OriginMachineName = original.OriginMachineName; return n; }
/// <summary> /// Creates a new <see cref="NotificationLite"/> instance, copying the property values /// of the <paramref name="original"/> <see cref="NotificationLite"/>. /// </summary> /// <param name="original">The <see cref="NotificationLite"/> to clone.</param> /// <returns><see cref="NotificationLite"/></returns> public static NotificationLite Clone(NotificationLite original) { NotificationLite n = new NotificationLite(); n.Name = original.Name; n.ApplicationName = original.ApplicationName; n.Title = original.Title; n.Description = original.Description; n.Priority = original.Priority; n.Sticky = original.Sticky; n.Duration = original.Duration; n.OriginMachineName = original.OriginMachineName; return(n); }