This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | F: Object, T: Known = Known Type | |
| F: Known, T: Object = Known Type | |
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | using System; | |
| public class Program | |
| { | |
| static void Main() | |
| { | |
| var obj = new Program(); | |
| if (obj.GetType() is {Name: "Program"}) | |
| { | |
| Console.WriteLine("Pattern found"); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | using System; | |
| using System.Runtime.InteropServices; | |
| namespace Test | |
| { | |
| internal static class Program | |
| { | |
| private static void Main(string[] args) | |
| { | |
| Console.WriteLine(Marshal.SizeOf<Test1>() + "-" + Marshal.SizeOf<Test2>() + "-" + (Marshal.SizeOf<Test2>() == Marshal.SizeOf<Test2>())); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #nullable enable | |
| using System; | |
| namespace test | |
| { | |
| public class Test : Base | |
| { | |
| //Why does the flow analysies does not catch this warning? | |
| //Warning: Non-nullable property 'MyProperty' is uninitialized. Consider declaring the property as nullable. | |
| public string MyProperty { get; set; } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | using System; | |
| namespace switchexpression | |
| { | |
| public interface IData | |
| { | |
| string? Text{get;} | |
| } | |
| public class Data : IData | |
| { |