Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[dotnet] Fix operator-o spotted by mberends++.
  • Loading branch information
jnthn committed Jan 22, 2011
1 parent b237786 commit 3b6c0e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dotnet/runtime/Runtime/Signatures/Parameter.cs
Expand Up @@ -90,9 +90,13 @@ public class Parameter
/// </summary>
public const int NAMED_FLAG = 8;

/// <summary>
/// Tests whether the flag is optional.
/// </summary>
/// <returns></returns>
public bool IsOptional()
{
return (Flags ^ OPTIONAL_FLAG) > 0;
return (Flags & OPTIONAL_FLAG) > 0;
}
}
}

0 comments on commit 3b6c0e6

Please sign in to comment.