I'm working on a plugin and I'd like to use a C# extension method in it. I defined a static class with a static extension method inside of the "Oxide.Plugins" namespace and I get a warning:
[Oxide] 2:06 AM [Warning] A plugin has polluted the global namespace by defining ExtensionClass: Modname
Any way not to get this message and still use extensions? Does this warning cause any actual issues?
Solved Defining a C# extension class for a plugin?
Discussion in 'Rust Development' started by Deicide666ra, Jul 26, 2015.
-
Bump, I believe the Oxide devs would know this, I'm pretty sure it's generated by Oxide.............
-
Bump!
Why does Oxide warn about this? What is the impact of ignoring that warning? -
Well, just define other namespace and use it. I use them extensively at my plugin: http://oxidemod.org/plugins/airdropextended.1210/
-
Wulf Community Admin
@bawNg mentioned this when it was previously asked:
Aside from the warning to server owners, defining your own namespace will spam us with warnings about it as well. -
[DOUBLEPOST=1439501422][/DOUBLEPOST]
Anyways I'll look at baton's code and see what I did wrong.