Regarding the first suggestions from #3. I have made the following changes to the code:
Created a new class called SliceDefinition to store relevant details such as string identifier, slice Type, Delegate sliceFactory, and injectable property details. I'm considering storing the PropertyInfo of the injectable properties in the SliceDefinition class.
Refactored RazorSlice.ResolveAndCreate to utilise the newly created SliceDefinition class.
Regarding the first suggestions from #3. I have made the following changes to the code:
Created a new class called
SliceDefinition
to store relevant details such as string identifier, slice Type, Delegate sliceFactory, and injectable property details. I'm considering storing thePropertyInfo
of the injectable properties in theSliceDefinition
class.Refactored
RazorSlice.ResolveAndCreate
to utilise the newly createdSliceDefinition
class.I'm still getting familiar with the codebase, so please let me know if I missed anything or if there's a better way to do something.
I will keep working on this pull request.