-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Whitelist System.ICloneable #7326
Comments
Could have sworn the C# docs said edit:
Having this whitelisted or a |
I think that it is not really possible since the built-in classes like |
I've never heard of someone calling If you look at what's derived from With the exception of |
Indeed, I just wanted my generic method to be usable for both the built-in types and for my own classes that actually implement a copying functionality. |
After thinking about this some more, What built-in types do you need to clone? |
What it is?
Whitelist Error: System.Private.CoreLib/System.ICloneable.Clone()
Why do you need to use this?
System.ICloneable is a standard interface for when you need to make a copy of an object, be it deep or shallow.
It is absolutely not necessary, I can make my own interface, but at the same time I don't really want to reinvent a wheel, and the ICloneable interface is useful for the generic functions:
The text was updated successfully, but these errors were encountered: