SHARE
Facebook X Pinterest WhatsApp

Impressions of C#

Written By
thumbnail
Web Webster
Web Webster
Aug 10, 2009

“Since handling an event is so tedious, they are often quite
generic and you have to check the arguments for what actually
happened. The one good thing about it is it’s clear OOP with no
magic.

“Handling events in pure C/C++ usually involves callbacks with
function pointer voodoo. Qt provides a very nice type safe layer
with signals and slots, with an almost ideal syntax, but the
implementation is questionable and magical.

“C# has events built into the language. A class can have events
with specific arguments and can invoke them much like Qt signals.
Events have types that identify their signatures, so it’s type safe
and no magic. However, that’s also where it gets clunky. For every
event with different arguments you need to also declare a delegate
for the type (from what I understand but haven’t read into yet, C#
3.0 provides some generics to make this less tedious). When
connecting an event, you need to create an instance of the
delegate.”

Complete
Story

thumbnail
Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Recommended for you...

5 Best Free and Open Source Text Expander Tools
webmaster
Jun 13, 2025
Grafito: Systemd Journal Log Viewer with a Beautiful Web UI
Bobby Borisov
Jun 12, 2025
FreeBSD Wants to Know a Few Things
brideoflinux
May 11, 2025
NVK enabled for Maxwell, Pascal, and Volta GPUs
Kara Bembridge
May 1, 2025
Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.