Show / Hide Table of Contents

Constructor DefaultValueAttribute

| Improve this Doc View Source

DefaultValueAttribute(Type, String)

Initializes a new instance of DefaultValueAttribute, converting the specified value to the specified type, and using an invariant culture as the translation context.

Declaration
public DefaultValueAttribute(Type type, string value)
Parameters
Type Name Description
System.Type type

A System.Type that represents the type to convert the value to.

System.String value

A System.String that can be converted to the type using the System.ComponentModel.TypeConverter for the type and the invariant culture.

| Improve this Doc View Source

DefaultValueAttribute(Boolean)

Initializes a new instance of DefaultValueAttribute using a System.Boolean value.

Declaration
public DefaultValueAttribute(bool value)
Parameters
Type Name Description
System.Boolean value

A System.Boolean that is the default value.

| Improve this Doc View Source

DefaultValueAttribute(Byte)

Initializes a new instance of DefaultValueAttribute using a System.Byte value.

Declaration
public DefaultValueAttribute(byte value)
Parameters
Type Name Description
System.Byte value

A System.Byte that is the default value.

| Improve this Doc View Source

DefaultValueAttribute(Int16)

Initializes a new instance of DefaultValueAttribute using a System.Int16 value.

Declaration
public DefaultValueAttribute(short value)
Parameters
Type Name Description
System.Int16 value

A System.Int16 that is the default value.

| Improve this Doc View Source

DefaultValueAttribute(Int32)

Initializes a new instance of DefaultValueAttribute using a System.Int32 value.

Declaration
public DefaultValueAttribute(int value)
Parameters
Type Name Description
System.Int32 value

A System.Int32 that is the default value.

| Improve this Doc View Source

DefaultValueAttribute(Int64)

Initializes a new instance of DefaultValueAttribute using a System.Int64 value.

Declaration
public DefaultValueAttribute(long value)
Parameters
Type Name Description
System.Int64 value

A System.Int64 that is the default value.

| Improve this Doc View Source

DefaultValueAttribute(Char)

Initializes a new instance of DefaultValueAttribute using a System.Char value.

Declaration
public DefaultValueAttribute(char value)
Parameters
Type Name Description
System.Char value

A System.Char that is the default value.

| Improve this Doc View Source

DefaultValueAttribute(Double)

Initializes a new instance of DefaultValueAttribute using a System.Double value.

Declaration
public DefaultValueAttribute(double value)
Parameters
Type Name Description
System.Double value

A System.Double that is the default value.

| Improve this Doc View Source

DefaultValueAttribute(Single)

Initializes a new instance of DefaultValueAttribute using a System.Single value.

Declaration
public DefaultValueAttribute(float value)
Parameters
Type Name Description
System.Single value

A System.Single that is the default value.

| Improve this Doc View Source

DefaultValueAttribute(String)

Initializes a new instance of DefaultValueAttribute using a System.String value.

Declaration
public DefaultValueAttribute(string value)
Parameters
Type Name Description
System.String value

A System.String that is the default value.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest