Posts

Showing posts with the label #Performance

.NET MAUI - Renders and Mapper

Image
Advanced Guide to Renderers and Mappers in .NET MAUI .NET MAUI introduced a new architecture that replaced traditional Xamarin.Forms Renderers with Handlers and Mappers . This shift has improved performance, modularity, and customization capabilities of UI components across platforms. Join our exclusive WhatsApp group for Xamarin and .NET MAUI developers to connect with experts, share insights, and get help with your projects. Whether you're a beginner or an experienced developer, this group is the perfect place to enhance your skills and collaborate with the community. Please, support my blog by clicking on our sponsors ad! Whether you're upgrading an existing Xamarin project or starting fresh with MAUI, understanding how to use and customize handlers will give you complete control over native rendering—and help you crack real-world interview questions. In this blog, we’ll explore: The difference between Renderers and Mappers ...

C# 10 & 11: Unleash the Power of Records, Global Usings, Extended Patterns, and More!

Image
  Here are 5 of the latest C# tips, along with code examples: 1. Record Types (C# 10): Create lightweight, immutable data structures with concise syntax. Useful for representing data without the overhead of full-fledged classes. C# record Point ( int X , int Y ); Point p = new Point( 5 , 10 ); // Create a record instance Console.WriteLine(p.X); // Access record members 2. Global Using Directives (C# 10): Reduce repetitive using statements in multiple files. Improve code readability and maintainability. C# // In a global using file: global using System.Collections.Generic; global using System.Linq; // In other files: List< int > numbers = new List< int >(); int sum = numbers.Sum(); // No need for local using statements 3. Extended Property Patterns (C# 11): Match and deconstruct properties for more flexible pattern matching. Useful for data extraction and transformation. C# Point p = new Point( 5 , 10 ); if (p is { X: var ...