diff --git a/src/DotNet/MethodDef.cs b/src/DotNet/MethodDef.cs
index 1411eb1a..6fe8a88b 100644
--- a/src/DotNet/MethodDef.cs
+++ b/src/DotNet/MethodDef.cs
@@ -853,6 +853,14 @@ public bool IsAggressiveOptimization {
public bool HasSecurityMitigations {
get => ((MethodImplAttributes)implAttributes & MethodImplAttributes.SecurityMitigations) != 0;
set => ModifyImplAttributes(value, MethodImplAttributes.SecurityMitigations);
+ }
+
+ ///
+ /// Gets/sets the bit
+ ///
+ public bool IsAsync {
+ get => ((MethodImplAttributes)implAttributes & MethodImplAttributes.Async) != 0;
+ set => ModifyImplAttributes(value, MethodImplAttributes.Async);
}
///
diff --git a/src/DotNet/MethodImplAttributes.cs b/src/DotNet/MethodImplAttributes.cs
index b1d3b3a4..eaedf3cc 100644
--- a/src/DotNet/MethodImplAttributes.cs
+++ b/src/DotNet/MethodImplAttributes.cs
@@ -46,5 +46,7 @@ public enum MethodImplAttributes : ushort {
AggressiveOptimization = 0x0200,
/// The JIT compiler should look for security mitigation attributes, such as the user-defined System.Runtime.CompilerServices.SecurityMitigationsAttribute. If found, the JIT compiler applies any related security mitigations. Available starting with .NET Framework 4.8.
SecurityMitigations = 0x0400,
+ /// Method requires async state machine rewrite. Available starting with .NET 11.0.
+ Async = 0x2000,
}
}