public class notifydata:icloneable { //<summary> //notification ID. //</summary> Public string Notifyid {get; set;} //<summary> & nbsp; ///notification type. //</summary> Public Notifytypes Notifytype {get; set;} //<summary> & nbsp; ///police ID. //</summary> Public String Alarmid {get; set;} ///<summary> & nbsp; ///recipient ID. //</summary> public string Receiverid { Get Set } ///<summary> // The recipient's name. //</summary> Public String Receivername {get; set;} ///<summary> ///Sender ID. //</summary> Public String SenderId {get; set;} ///<summary> & nbsp; ///sender name. //</summary> Public String SenderName {get; set;} ///<summary> ///notification content. //</summary> Public String Content {get; set;} ///<summary> & nbsp; ///attachment collection. //</summary> Public Ilist<accessory> attachlist {get; set;} //<summary> & nbsp; ///theme. //</summary> Public String Subject {get; set;} ///<summary> & nbsp; ///Receive organization Id,id and ID with '. ' Separated. (Only the parent organization ID is shown). //</summary> Public String Receiverallorgids {geT Set } ///<summary> // Receive organization name, between name and name '. ' Separated. (Displays only the parent organization name). //</summary> Public String Receiverallorgnames {get; set;} ///<summary> & nbsp; ///Receive organization Id,id and ID with '. ' Separated. (Displays only the organization ID that was sent separately). //</summary> Public String Receiverselforgids {get; set;} ///<summary> ///Receive organization name, use '. ' Between name and name Separated. (Displays only the name of the organization sent separately). //</summary> Public String Receiverselforgnames {get; set;}
public Object Clone () {return (Notifydata) this. MemberwiseClone (); } }
Shallow cloning example