Class CreateSyncVersionAttribute
An attribute that can be used to automatically generate a synchronous version of an async method. Must be used in a partial class.
Inherited Members
Namespace: Zomp.SyncMethodGenerator
Assembly: SoCore.dll
Syntax
[AttributeUsage(AttributeTargets.Method)]
public class CreateSyncVersionAttribute : Attribute
Remarks
Copy pasted from the code generator Zomp.SyncMethodGenerator. The generator acts wonky when there are multiple attributes across multiple projects combined with InternalVisibleTo. Defining it ourselves allow us to force that only a single copy of the attribute exists in our source code, hence no buggy behavior. https://github.com/zompinc/sync-method-generator/issues/76
Constructors
CreateSyncVersionAttribute()
An attribute that can be used to automatically generate a synchronous version of an async method. Must be used in a partial class.
Declaration
public CreateSyncVersionAttribute()
Remarks
Copy pasted from the code generator Zomp.SyncMethodGenerator. The generator acts wonky when there are multiple attributes across multiple projects combined with InternalVisibleTo. Defining it ourselves allow us to force that only a single copy of the attribute exists in our source code, hence no buggy behavior. https://github.com/zompinc/sync-method-generator/issues/76
Properties
OmitNullableDirective
Gets or sets a value indicating whether "#nullable enable" directive will be omitted from generated code. False by default.
Declaration
public bool OmitNullableDirective { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
Copy pasted from the code generator Zomp.SyncMethodGenerator. The generator acts wonky when there are multiple attributes across multiple projects combined with InternalVisibleTo. Defining it ourselves allow us to force that only a single copy of the attribute exists in our source code, hence no buggy behavior. https://github.com/zompinc/sync-method-generator/issues/76