Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Development
Starlight [C#/.NET Core/Dapper]
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Joopie" data-source="post: 471659" data-attributes="member: 7030"><p>I perhaps can make an educated guess and reason why it's done that way, seeing SpeedBlood's name in the credits.</p><p></p><p>You can construct a new instance of a given class via a type parameter. One of the criteria's is to define a few generic type constraints, such as [ICODE]class[/ICODE] and <a href="https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/new-constraint" target="_blank">[ICODE]new()[/ICODE]</a>. Defining these type constraints forces you to create a parameterless constructor. Leaving the only way to fill the instance by a seperate parse method.</p></blockquote><p></p>
[QUOTE="Joopie, post: 471659, member: 7030"] I perhaps can make an educated guess and reason why it's done that way, seeing SpeedBlood's name in the credits. You can construct a new instance of a given class via a type parameter. One of the criteria's is to define a few generic type constraints, such as [ICODE]class[/ICODE] and [URL='https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/new-constraint'][ICODE]new()[/ICODE][/URL]. Defining these type constraints forces you to create a parameterless constructor. Leaving the only way to fill the instance by a seperate parse method. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Development
Starlight [C#/.NET Core/Dapper]
Top