Skip to content

Commit

Permalink
Fix #581 (#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
dolauli authored Nov 17, 2020
1 parent 1ef71f9 commit 6390998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion powershell/llcsharp/enums/enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class EnumClass extends Struct implements EnhancedTypeDeclaration {
access: Access.Internal,
description: `Conversion from arbitrary object to ${this.name}`,
parameters: [new Parameter('value', dotnet.Object, { description: `the value to convert to an instance of <see cref="${this.name}" />.` })]
})).add(`return new ${this.name}(System.Convert.ToString(value));`);
})).add(`return new ${this.name}(global::System.Convert.ToString(value));`);

// add implicit operator(thistype)
this.addMethod(new Operator('implicit operator string', {
Expand Down

0 comments on commit 6390998

Please sign in to comment.