Skip to the content.

< Back


SubClass

Namespace: MyClassLib.SubNamespace

Sub class from MyClass

public sealed class SubClass : MyClassLib.MyClass, MyClassLib.IMyInterface

Inheritance ObjectMyClassSubClass
Implements IMyInterface

Fields

myField

My field.

public int myField;

myProtectedField

My field.

protected int myProtectedField;

Properties

MyProperty

My property.

public string MyProperty { get; protected set; }

Property Value

String
The property value. Used by MyClass.DoGeneric<T>(T).

Example

This example assign "foo" to MyProperty.

foo.MyProperty = "foo";

MyNullableProperty

My nullable property

public Nullable<int> MyNullableProperty { get; set; }

Property Value

Nullable<Int32>
The nullable property value.

MyEnum

My enum

public MyEnum MyEnum { get; set; }

Property Value

MyEnum
The enum value

MyProtectedProperty

My property.

protected string MyProtectedProperty { get; set; }

Property Value

String
The property value. Used by .

MyProtectedEnum

My enum

protected MyEnum MyProtectedEnum { get; set; }

Property Value

MyEnum
The enum value

Constructors

SubClass()

public SubClass()

Methods

ToString()

Convert instance to string.

public string ToString()

Returns

String
A string.

Events

MyEvent

My event.

public event EventHandler<EventArgs> MyEvent;

MyProtectedEvent

My event.

protected event EventHandler<EventArgs> MyProtectedEvent;

< Back