Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using ConsoleApplication1;
- namespace ConsoleApplication11
- {
- class Item: ICloneable
- {
- #region Fields
- object _data;
- Item _next;
- #endregion Fields
- #region Properties
- public object Data
- {
- get { return _data; }
- set { _data = value; }
- }
- public Item Next
- {
- get { return _next; }
- set { _next = value; }
- }
- #endregion Properties
- #region Constructors
- public Item(object data)
- {
- Data = data;
- Next = null;
- }
- #endregion Constructors
- #region Methods
- public object Clone()
- {
- return new Item(Data);
- }
- #endregion Methods
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement