Skip to content
MAKOLYTE

MAKOLYTE

Solve real coding problems

  • About
  • Latest
  • C#
    • ASP.NET
    • Event-driven
    • EF Core
    • Visual Studio
    • WinForms
    • Windows Service
  • Java
    • Setup
    • Spring
    • AWS
  • Python
  • SQL
    • SQL Server
    • MySQL
  • Principles and Practice
    • Algorithms
    • Design Patterns
    • Dependency Injection
    • Refactoring
    • Unit Testing

MetadataReader

C# – Get a list of types defined in an assembly without loading it

08/26/2021 by Mak

There are two ways to get type information from an assembly without loading it: Reflection-only / metadata load. Search through the source files for a pattern. In this article, I’ll show both approaches for outputting a list of types in an assembly. Reflection-only / metadata load There could be many reasons why you wouldn’t want … Read more

Categories C# Tags Assembly.ReflectionOnlyLoadFrom(), MetadataLoadContext, MetadataReader, PowerShell, Select-String, System.PlatformNotSupportedException, System.Reflection, System.Reflection.Metadata Leave a comment

Categories

  • C# (301)
    • ASP.NET (40)
    • Console App (10)
    • EF Core (15)
    • Event-driven (12)
    • Visual Studio (22)
    • Windows Service (3)
    • WinForms (19)
  • Git (2)
  • Java (7)
    • AWS (5)
    • Setup (1)
    • Spring (6)
  • JavaScript (3)
  • Notepad++ (1)
  • Postman (4)
  • PowerShell (2)
  • Principles and Practice (77)
    • Algorithms (15)
    • Data Structures (7)
    • Dependency Injection (15)
    • Design Patterns (11)
    • Refactoring (6)
    • Unit Testing (31)
  • Python (3)
  • SQL (50)
    • MySQL (5)
    • SQL Server (43)

Tags

ApiController appsettings.json ASP.NET AsyncAwait Attributes C# ConfigureServices Dapper DateTime DbContext Dependency Injection Dictionary EF Core Enum Exception Extension Methods Generics GetAsync hashset HttpClient Install-Package JSON JsonConvert.DeserializeObject JsonConverter JsonSerializer JsonSerializer.Deserialize() JsonSerializerOptions Linq mocking Moq Newtonsoft.JSON Nuget Parameterized Unit Test Performance Performance Comparison Refactoring SELECT SQL Server StringBuilder System.Reflection System.Text.Json Threading unit testing Visual Studio WinForms

Privacy Policy

  • Privacy Policy
© 2022 MAKOLYTE • Built with GeneratePress