1
Vote

Snippets.Create<>(...) is awkward to use with an ASP.NET Website

description

Because an ASP.NET Website makes it practically impossible to get at a UserControl programatically, the generic SnippetType argument of Snippets.Create<SnippetType>(...) is not easy to set.
 
The solution might be to add a Create method that does not require the type to be passed, this will return the Type, Snippet.
 
Since the whole idea behind passing the generic type in the first place is to allow the developer to set properties, adding a SetProperty(string propertyName, object value) might be helpful.

comments