AI engineer and solution architect in Sydney. Agents, MCP, RAG, Azure, .NET, EV charging. I write about what breaks after go-live.
Similar Posts
Profiling CLR for .NET application
CLR Profiler can be used to analyse how your object is allocated in memory and which object has taken the most memory. It also can be used to detect memory leak To download CLR profiler for…
Camel Case for Web Api 2
To convert your DTO to become Camel Case, you can use the code below //Camel Case settings var settings = GlobalConfiguration.Configuration.Formatters.JsonFormatter.SerializerSettings; settings.ContractResolver = new CamelCasePropertyNamesContractResolver(); settings.Formatting = Formatting.Indented;
Generic Logging Class in .NET
This is a snippet code which is useful in creating your own logging class. You can compile this as a library and use it accross the projects. using System; using System.Configuration; using System.Diagnostics; using System.Reflection; namespace…
Remove UTF8 BOM Character from the file
Normally when you have a UTF8 encoded file then it might have BOM character that will be rendered when you read it using filestream even though when you open the file with the notepad it doesn’t…
IoC Container Benchmarks
I found this benchmark for different IoC in .NET. Personally I’ve been using Unity, Ninject and SimpleInjector. I like SimpleInjector because it is very simple and surprisingly it is quite fast compared with the rest. Performance…
Controlling PDF document through parameter
It’s a simple thing but might be essential. Sometimes you would like to have a link to your pdf document into a particular page. This is how you can do it. Add “page=” and the page…