MainClass Class
Public Class MainClass
Implements IEnumerable(Of String), _
ISampleInterface
This language is not supported or no code example is available.
public class MainClass : IEnumerable<string>,
ISampleInterface
This language is not supported or no code example is available.
type MainClass = class
interface IEnumerable<string>
interface ISampleInterface
end
This language is not supported or no code example is available.
public ref class MainClass : public IEnumerable<String^>^,
public ISampleInterface^
This language is not supported or no code example is available.
| Name | Description | |
|---|---|---|
|
Info | Gets or sets information about this object. |
|
SelectedValue | Gets the selected value. |
|
Text | Our sample property. |
| Name | Description | |
|---|---|---|
|
Equals(object, object) | Determines whether the specified object instances are considered equal. (inherited from object). |
|
Equals(object) | Determines whether the specified object is equal to the current object. (inherited from object). |
|
~Object() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from object). |
|
GetEnumerator() | Returns an enumerator that iterates through the collection. |
|
GetHashCode() | Serves as the default hash function. (inherited from object). |
|
GetType() | Gets the Type of the current instance. (inherited from object). |
|
MemberwiseClone() | Creates a shallow copy of the current object. (inherited from object). |
|
Method1(int) | Our sample method. |
|
Method1(string) | Sample method with one String argument. |
|
Method1<T>(int[], string) | Sample generic method with two arguments. |
|
ReferenceEquals(object, object) | Determines whether the specified object instances are the same instance. (inherited from object). |
|
ToString() | Returns a string that represents the current object. (inherited from object). |
| Name | Description | |
|---|---|---|
|
AsPrettyString(this MainClass) | An example of an extension method. Returns a human readable string representing an instance of MainClass. (Defined by HelperFunctions). |
| Name | Description | |
|---|---|---|
|
TextChanged | Occurs when the Text property value has changed. |
| Name | Description | |
|---|---|---|
|
NestedException | Obsolete. This is our custom exception. |
| Name | Description | |
|---|---|---|
|
CONSTANT_1 | Sample constant #1. |
|
CONSTANT_2 | Sample constant #2. |
|
EmptyInstance | An instance with uninitialized property values. |
|
InternalField | An internal field with logical value. |
Here we show how to use XML comments. As a thing of interest, this class has
HelperFunctions.AsPrettyString extension method defined in HelperFunctions class.
SampleClassLibrary.MainClass
.NET Framework
Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0.NET Core
Supported in: 1.0, 1.1, 2.0.NET Standard
Supported in: 2.0Xamarin.Android
Supported in: 7.1Portable Class Library
Supported in: Portable Class Library
Any static (Shared in Visual Basic) members of this type are thread safe.
Any instance members are not guaranteed to be thread safe.