declaring a class inside a class c# code example Example: how to create class in C# class ClassName { }