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

Use Generic type instead of object type #21

Open
kavekardel opened this issue Oct 21, 2023 · 0 comments
Open

Use Generic type instead of object type #21

kavekardel opened this issue Oct 21, 2023 · 0 comments

Comments

@kavekardel
Copy link
Collaborator

You can use the generic type instead of the object type throughout the ExcelWizard project.
For example, we can use List<T> as input of the WithOneSheetUsingModelBinding(object bindingListModel) method. like this:
WithOneSheetUsingModelBinding<T>(List<T> bindingListModel)

The main benefit of using generic types in your method is strong type safety, which helps catch type-related errors at compile time, enhances code clarity, and promotes code reusability.

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