Example #1
0
 /// <summary>
 /// If this is an extension method, returns a reduced extension method
 /// symbol representing the method. Otherwise, returns null.
 /// </summary>
 public MethodSymbol ReduceExtensionMethod()
 {
     return((this.IsExtensionMethod && this.MethodKind != MethodKind.ReducedExtension) ? ReducedExtensionMethodSymbol.Create(this) : null);
 }
 public ReducedExtensionMethodParameterSymbol(ReducedExtensionMethodSymbol containingMethod, ParameterSymbol underlyingParameter) :
     base(underlyingParameter)
 {
     Debug.Assert(underlyingParameter.Ordinal > 0);
     _containingMethod = containingMethod;
 }