src/sys/dotnet/perwapi/PERWAPI.cs
/// <summary>
/// Add a constant to this scope.
/// </summary>
/// <param name="name">The name of the constant.</param>
/// <param name="value">The value of the constant.</param>
/// <param name="type">The type of the constant.</param>
/// <returns>The ConstantBinding object for the new constant.</returns>
Add a constant to this scope.
Add a constant to this scope .
internal ConstantBinding AddConstantBinding(string name, object value, Type type) {
           ConstantBinding binding;
           if ((binding = FindConstantBinding(name)) != null)
               return binding;
           binding = new ConstantBinding(name, value, type, _thisMeth.locToken);
           _constantBindings.Add(binding);
           return binding;
       }
internal ConstantBinding AddConstantBinding ( string name , object value , Type type ) { ConstantBinding binding ; if ( ( binding = FindConstantBinding ( name ) ) != null ) return binding ; binding = new ConstantBinding ( name , value , type , _thisMeth . locToken ) ; _constantBindings . Add ( binding ) ; return binding ; }
Add a constant to this scope.
Add a constant to this scope .
The ConstantBinding object for the new constant.
The ConstantBinding object for the new constant .
name
string
The name of the constant.
The name of the constant .
value
object
The value of the constant.
The value of the constant .
type
Type
The type of the constant.
The type of the constant .