File.WriteAllText("index.html", "<h1>привет</h1>", Encoding.UTF8);
StreamWriter sw = new StreamWriter(File.OpenWrite("index.html"), Encoding.UTF8);
public class A
{
protected virtual void Method()
{
Console.Write("A");
}
}
public class B : A
{
protected override void Method()
{
Console.Write("B");
}
protected void MethodInA()
{
base.Method();
}
}
public class C : B
{
public void Some()
{
MethodInA();
}
}