Skip to content

C# Examples

  • Home
  • About C#
    • C# Interview Questions and Answers for .NET Developers
    • Learn C#: A Practical Path Through the Examples
  • All Posts
  • Bootstrap 5 Examples
  • Contact

turgay

Reflection in C#: Inspect Types and Invoke Methods at Runtime

November 25, 2026June 19, 2014 by turgay

Use reflection in C# to list a type’s methods and properties, read their parameters, create objects and call methods by name, and keep it fast.

Categories C# .NET Tags C#, dynamic invocation, late binding, reflection Leave a comment

[Flags] Enums and Bitwise Operations in C#

November 25, 2026June 18, 2014 by turgay

Combine enum values with the [Flags] attribute in C#: how to define the values, set, clear, toggle and test flags, and the traps around zero and HasFlag.

Categories C# .NET Tags bit shifting, bitwise operation, C#, enum, flags enum attribute and bitwise operation Leave a comment

NotifyIcon in C#: System Tray Icon, Menu and Balloon Tips

November 25, 2026June 18, 2014 by turgay

Put a WinForms app in the Windows notification area with NotifyIcon, add a right-click menu, show balloon notifications and remove the icon cleanly.

Categories C# .NET Tags C#, message, notify icon Leave a comment

Get an Enum’s Description Attribute Value in C#

November 25, 2026June 17, 2014 by turgay

Read the [Description] attribute of an enum value in C# with a short extension method, handle undefined values, and cache the result.

Categories C# .NET Tags C#, enum, get description 1 Comment

Fibonacci Sequence in C#: Iterative, Recursive and BigInteger

November 25, 2026June 17, 2014 by turgay

Calculate Fibonacci numbers in C# iteratively and recursively, see why the naive recursion is so slow, and avoid the overflow at F(47) and F(93).

Categories C# .NET Tags C#, fibonacci, iterative, print, recursive, sequence, series Leave a comment
Older posts
Newer posts
← Previous Page1 … Page16 Page17 Page18 … Page21 Next →

Categories

Recent Posts

  • Select XML Nodes by Name or Attribute Value in C#
  • Binary Search Tree in C#: Add, Find, Remove and Traversals
  • Select, Insert, Update and Delete Data in an Access File with C#
  • C# Collections: Which One to Use and When
  • C# ArrayList vs Generic List: Examples and When to Use Each
  • About
  • Privacy Policy
  • Contact
© 2026 C# Examples