Notiz
Zougrëff op dës Säit erfuerdert Autorisatioun. Dir kënnt probéieren, Iech unzemellen oder Verzeechnesser ze änneren.
Zougrëff op dës Säit erfuerdert Autorisatioun. Dir kënnt probéieren, Verzeechnesser ze änneren.
The type of the argument to the DefaultParameterValue attribute must match the parameter type
This error is generated when you pass a value of the wrong type to DefaultParameterValueAttribute. Ensure the type of the attribute argument matches that of the target parameter.
The following sample generates CS1908:
// CS1908.cs
// compile with: /target:library
using System.Runtime.InteropServices;
public interface ISomeInterface
{
void Bad([DefaultParameterValue("true")] bool b); // CS1908
void Good([DefaultParameterValue(true)] bool b); // OK
}
Feedback zu .NET
.NET ass en Open-Source-Projet. Wielt e Link, fir Feedback ze ginn: