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

FileHelperEngine Generic Typing #410

Closed
0x4A42 opened this issue Sep 1, 2021 · 0 comments
Closed

FileHelperEngine Generic Typing #410

0x4A42 opened this issue Sep 1, 2021 · 0 comments

Comments

@0x4A42
Copy link

0x4A42 commented Sep 1, 2021

Hi, is there any way to use generics when setting up an Engine?

For example, if I had a method of

public T readLine<T>(string line, T type){
   var engine = new FileHelperEngine<T>();
   var result = engine.ReadString(lineToParse);
   return result;
} 

I've tried looking in the docs and trying some code myself, but can't get anything to work

@0x4A42 0x4A42 closed this as completed Sep 3, 2021
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

1 participant