Skip to main content
Microsoft
Developer Support
Developer Support
  • Home
  • DevBlogs
    • App Center
    • Azure DevOps
    • Notification Hubs
    • Visual Studio
    • Visual Studio Code
    • Visual Studio for Mac
    • Azure Artifacts
    • Azure Boards
    • Azure Pipelines
    • Azure Repos
    • Azure Test Plans
    • DevOps
    • C++
    • Java
    • Java Blog in Chinese
    • JavaScript
    • PowerShell
    • Python
    • Q#
    • Scripting
    • TypeScript
    • Visual Basic
    • Visual C#
    • Visual F#
    • .NET
    • ASP.NET
    • NuGet
    • Xamarin
    • Apps for Windows
    • Azure Government
    • Azure SDKs
    • Bing Dev Center
    • Command Line
    • Developer Support
    • DirectX Developer Blog
    • IoT Developer
    • Math In Office
    • Microsoft Edge Dev
    • Microsoft Azure
    • Office 365 Development
    • Old New Thing
    • PAX Graph
    • PAX Media
    • PAX Windows
    • Perf and Diagnostics
    • PIX on Windows
    • Startup Developers
    • Surface Duo
    • Sustainable Software
    • Windows Search Platform
    • Azure Cosmos DB
    • Azure Data Studio
    • Azure SQL
    • Azure Synapse Analytics
    • OData
    • Revolutions R
    • SQL Server Data Tools

    Developer Support

    Services for Microsoft Premier and Unified Support Customers

    seteplia Archives | Page 2 of 3 | Developer Support

    Extending the async methods in C#
    Extending the async methods in C#
    Sergey TepliakovSergey TepliakovJanuary 11, 2018Jan 11, 201801/11/18
    The async series In the previous blog post we discussed how the C# compiler transforms asynchronous methods. In this post, we'll focus on extensibility points the C# compiler provides for customizing the behavior of async methods. There are 3 ways how you can control the async method's machinery: Custom...

    2seteplia
    Dissecting the async methods in C#
    Dissecting the async methods in C#
    Sergey TepliakovSergey TepliakovNovember 30, 2017Nov 30, 201711/30/17
    The async series The C# language is great for developer's productivity and I'm glad for the recent push towards making it more suitable for high-performance applications. Here is an example: C# 5 introduced 'async' methods. The feature is very useful from a user's point of view because it helps combining several task-...

    2seteplia
    Dissecting the tuples in C# 7
    Dissecting the tuples in C# 7
    Sergey TepliakovSergey TepliakovNovember 1, 2017Nov 1, 201711/1/17
    System.Tuple types were introduced in .NET 4.0 with two significant drawbacks: (1) tuple types are classes and (2) there was no language support for constructing/deconstructing them. To solve these issues, C# 7 introduces new language feature as well as a new family of types (*). Today, if you need to glue together two values to return them...

    Comments are closed.0seteplia
    Dissecting the pattern matching in C# 7
    Dissecting the pattern matching in C# 7
    Sergey TepliakovSergey TepliakovOctober 16, 2017Oct 16, 201710/16/17
    C# 7 finally introduced a long-awaited feature called "pattern matching". If you're familiar with functional languages like F# you may be slightly disappointed with this feature in its current state, but even today it can simplify your code in a variety of different scenarios. Every new feature is fraught with danger for a developer working...

    Comments are closed.0seteplia
    Dissecting the local functions in C# 7
    Dissecting the local functions in C# 7
    Sergey TepliakovSergey TepliakovOctober 3, 2017Oct 3, 201710/3/17
    The Local functions is a new feature in C# 7 that allows defining a function inside another function. When to use a local function? The main idea of local functions is very similar to anonymous methods: in some cases creating a named function is too expensive in terms of cognitive load on a reader. Sometimes the functionality is inherently ...

    1seteplia
    Managed object internals, Part 4. Fields layout
    Managed object internals, Part 4. Fields layout
    Sergey TepliakovSergey TepliakovSeptember 21, 2017Sep 21, 201709/21/17
    In the recent blog posts we've discussed invisible part of the object layout in the CLR: This time we're going to focus on the layout of an instance itself, specifically, how instance fields are laid out in memory. There is no official documentation about fields layout because the CLR authors reserved the right to ...

    Comments are closed.0seteplia
    Managed object internals, Part 3. The layout of a managed array
    Managed object internals, Part 3. The layout of a managed array
    Sergey TepliakovSergey TepliakovSeptember 12, 2017Sep 12, 201709/12/17
    Arrays are one of the basic building blocks of every applications. Even if you do not use arrays directly every day you definitely use them indirectly as part of almost any library. C# has arrays from the very beginning and back in the day that was the only "generic"-like and type safe data structure available. Today you may use them less ...

    Comments are closed.0seteplia
    Managed object internals, Part 2. Object header layout and the cost of locking
    Managed object internals, Part 2. Object header layout and the cost of locking
    Sergey TepliakovSergey TepliakovSeptember 6, 2017Sep 6, 201709/6/17
    Working on my current project I’ve faced a very interesting situation. For each object of a given type, I had to create a monotonically growing identifier with few caveats: 1) the solution should work in multithreaded environment 2) the number of objects is fairly large, up to 10 million instances and 3) identity should be created lazily ...

    1seteplia
    Managed object internals, Part 1. The layout
    Managed object internals, Part 1. The layout
    Sergey TepliakovSergey TepliakovMay 26, 2017May 26, 201705/26/17
    The layout of a managed object is pretty simple: a managed object contains instance data, a pointer to a meta-data (a.k.a. method table pointer) and a bag of internal information also known as an object header. The first time I’ve read about it, I’ve got a question: why the layout of an object is so weird? Why a managed reference ...

    1seteplia
    To box or not to Box? That is the question!
    To box or not to Box? That is the question!
    Sergey TepliakovSergey TepliakovMay 17, 2017May 17, 201705/17/17
    Discussions on reddit, hacker news. Recently I've noticed that the Equal method from our ValueTuple (*) struct generates significant memory traffic (~1Gb). That was a bit of a surprise to me. This struct is well designed and was used pretty heavily in many performance critical scenarios. Here how the struct looks like: (*) Our ...

    Comments are closed.0Code Reviewseteplia
    • Previous page
    • Page 1
    • Page 2
    • Page 3
    • Next page
    Relevant Links

    About Us

    Microsoft Unified Support

    Contact Us

    Case Studies

    Join our Team


    Content issues or broken links?  Please leave a comment or send us a note!

    Top Bloggers
    Premier Developer

    Premier Developer

    Archive
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • September 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • May 2014
  • March 2014
  • May 2013
  • January 2013
  • December 2012
  • June 2012
  • August 2011
  • February 2010
  • October 2008
  • September 2008
  • August 2008
  • April 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • Stay informed

    Login
    Code Block
    What's new
    • Surface Duo
    • Surface Laptop Go
    • Surface Pro X
    • Surface Go 2
    • Surface Book 3
    • Microsoft 365
    • Windows 10 apps
    • HoloLens 2
    Microsoft Store
    • Account profile
    • Download Center
    • Microsoft Store support
    • Returns
    • Order tracking
    • Virtual workshops and training
    • Microsoft Store Promise
    • Financing
    Education
    • Microsoft in education
    • Office for students
    • Office 365 for schools
    • Deals for students & parents
    • Microsoft Azure in education
    Enterprise
    • Azure
    • AppSource
    • Automotive
    • Government
    • Healthcare
    • Manufacturing
    • Financial services
    • Retail
    Developer
    • Microsoft Visual Studio
    • Windows Dev Center
    • Developer Center
    • Microsoft developer program
    • Channel 9
    • Microsoft 365 Dev Center
    • Microsoft 365 Developer Program
    • Microsoft Garage
    Company
    • Careers
    • About Microsoft
    • Company news
    • Privacy at Microsoft
    • Investors
    • Diversity and inclusion
    • Accessibility
    • Security
    English (United States)
    • Sitemap
    • Contact Microsoft
    • Privacy
    • Manage cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2021