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

List Of Polymorphic Variables Supporting #6

Open
Sawua opened this issue Nov 26, 2023 · 2 comments
Open

List Of Polymorphic Variables Supporting #6

Sawua opened this issue Nov 26, 2023 · 2 comments
Assignees
Labels
feature request Feature Request

Comments

@Sawua
Copy link

Sawua commented Nov 26, 2023

At the moment, trying to create a list of polymorphic variables causes a flood of errors.

P.S Can be solved with creating class-container

@Sawua Sawua added the feature request Feature Request label Nov 26, 2023
@Heymity Heymity self-assigned this Nov 27, 2023
@Heymity
Copy link
Owner

Heymity commented Nov 27, 2023

Thanks for reporting and using the package! I will try to look at it asap (but if you have a solution done feel free to make a push request ;) )

@Sawua
Copy link
Author

Sawua commented Dec 1, 2023

Probably something like this :
#[Serializable]
public class PolymorphicContainer : object where TBase : class
{

public PolymorphicVariable<TBase> polymorphicVariable;

public PolymorphicVariable<TBase> PolymorphicVariable
{
    get { return polymorphicVariable; }
    set { polymorphicVariable = value; }
}

}

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

No branches or pull requests

2 participants