Delphi and c# are basically the same, they were designed by the same person, Anders Hejlsberg; Only difference is Delphi is easier to use and the syntax is cleaner, both are OOP.
Delphi Code
Code:
procedure TForm1.Button1Click(Sender: TObject);
begin
if Sender is TButton then
begin
(Sender as TButton).Caption := 'Hello';
end;
end;
C# Code
Code:
private void button1_Click(object sender, System.EventArgs e)
{
if (sender is Button)
{
(sender as Button).Text = "Hello";
}
}