Primary Constructors (C# 12 Syntactic Sugar): A Guide 

Primary Constructors

With the introduction of .Net8 and C#12 in November of 2023, there were many significant changes to .NET and C#. One such feature in C#12 is the concept of a Primary Constructor. A Primary constructor replaces a class constructor with parameters on the class. The parameters for the constructor are available anywhere in the body of the class.   With Primary Constructor:  It is important to note that the class parameters are not fields of the class. The following code will not compile if used in SimpleClass, as foo and bar are not available on “this”.  Using a Primary Constructor can significantly improve the readability of your code, as it does away with a lot … Read more

Application Update Leads to Improved Performance and Functionality

A provider of real estate advisory services contacted Imaginet to assist them with an application we had previously developed for them. Most of the application was developed using .Net framework 4.8, which is now outdated. The application’s front end was developed with version 8, but now Angular 16 is the most updated and recent version. An application update would improve the overall use, performance, security, and functionality of the application itself.   Our Solution  The application required an update so it would use .Net core and Angular 16 as the frontend. The client also requested other fixes that would improve the performance, such as moving some data processing from the Angular … Read more

New Application Provides Online Hub for Neurodiverse Individuals to Collaborate

A major Canadian university reached out to Imaginet to create an application that provided an online resource for neurodiverse people and their families. The goal was to provide a space where neurodiverse individuals could share stories or provide insight into the practices that have helped them overcome challenges in their day-to-day lives. This online resource would give people facing similar challenges a safe space to communicate with one another.   The Imaginet Application Development team used C#, ASP.NET, JavaScript, and Orchard to build the entire website and application from scratch. Orchard is a CMS service with several built-in tools, which allowed Imaginet to streamline the whole process and ensure end users … Read more