Class representing an
CopyC# or an unset value. Unlike an
CopyC#, an
CopyC# may be empty.
intintOptionalInt
| C# | Visual Basic | Visual C++ |
public class OptionalInt
Public Class OptionalInt
public ref class OptionalInt
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| OptionalIntOptionalIntNew()() |
Default constructor that creates and empty OptionalInt | |
| OptionalIntOptionalIntNew(Int32) |
Constructor specifying an int | |
| Empty |
Accessor that gets whether this OptionalInt | |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode()() | Serves as a hash function for a particular type. GetHashCode()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
| GetType()() | Gets the Type of the current instance. (Inherited from Object.) | |
| IntValue |
Accessor that gets the intOptionalInt | |
| MemberwiseClone()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString()() | (Inherited from Object.) |
| Object | |
| OptionalInt | |