Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
'function' : a generic function or a member-function of a generic class cannot have a variable parameter list
Remarks
The /clr:pure and /clr:safe compiler options are deprecated in Visual Studio 2015 and unsupported in Visual Studio 2017.
See Generics for more information.
Example
The following example generates C3268.
// C3268.cpp
// compile with: /clr:pure /c
generic <class ItemType>
void Test(ItemType item, ...) {} // C3268
// try the following line instead
// void Test(ItemType item) {}
generic <class ItemType2>
ref struct MyStruct { void Test(...){} }; // C3268
// try the following line instead
// ref struct MyStruct { void Test2(){} }; // OK