Skip to content
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

Misusing of static class ExtensionMethods #2394

Closed
FinsterASAP opened this issue Jul 4, 2018 · 1 comment
Closed

Misusing of static class ExtensionMethods #2394

FinsterASAP opened this issue Jul 4, 2018 · 1 comment
Assignees

Comments

@FinsterASAP
Copy link

Overview

Using an ExtensionMethods-Class under HoloToolkit-Examples\MotionControllers-GrabMechanics\Scripts\ExtensionMethod.cs is not advisable.
Any personal use of own ExtensionMethods class is causing a compiler error: CS0101.

Expected Behavior

Any HoloToolkit ExtensionsMethods class should be removed or use its own namespace.

Actual Behavior

Assets/Scripts/ExtensionMethods.cs(5,21): error CS0101: The namespace global::' already contains a definition for ExtensionMethods'

Steps to reproduce

Create an empty project and add the script descriped here: https://unity3d.com/de/learn/tutorials/topics/scripting/extension-methods

Unity Editor Version

2017.4.6f1

Mixed Reality Toolkit Release Version

2017.4.0.0

@StephenHodgson
Copy link
Contributor

Thanks for bringing this to our attention. Likely it's not in the proper namespace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants