Type.EmptyTypes Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an empty array of type Type. This field is read-only.
public: static initonly cli::array <Type ^> ^ EmptyTypes;
public static readonly Type[] EmptyTypes;
staticval mutable EmptyTypes : Type[]
Public Shared ReadOnly EmptyTypes As Type()
Field Value
Type[]
Examples
The following code example shows the EmptyTypes
field used in one of the GetConstructor
methods to get a constructor that takes no parameters.
cInfo = type->GetConstructor( BindingFlags::ExactBinding, nullptr,
Type::EmptyTypes, nullptr );
cInfo = type.GetConstructor (BindingFlags.ExactBinding, null,
Type.EmptyTypes, null);
let cInfo = typ.GetConstructor(BindingFlags.ExactBinding, null, Type.EmptyTypes, null)
cInfo = type.GetConstructor(BindingFlags.ExactBinding, _
Nothing, Type.EmptyTypes, Nothing)
Applies to
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.