c# - 'The type or namespace name 'ICloneable' could not be found' in win store app -
i developing windows store app , getting error of 'the type or namespace name 'icloneable' not found'.
here code.
public class discoveryitem : icloneable { private string _name = string.empty; private string _node = string.empty; private jabberid _jid; public discoveryitem() { } public discoveryitem(jabberid jid, string name, string node) { _jid = jid; _name = name; _node = node; } public object clone() { return new discoveryitem(_jid, _name, _node); } }
windows store apps using own version of .net framework.
there no icloneable
windows store apps, see here.
the recommendation of microsoft use instead is:
a custom method returns appropriate type
Comments
Post a Comment