var result = Convert.ToString(number, 2);
– Almost the only use for the (otherwise useless) Convert
class.
More Related Contents:
- Parse DateTime with time zone of form PST/CEST/UTC/etc
- Do you need to dispose of objects and set them to null?
- Why does .NET add an additional slash to the already existent slashes in a path?
- Query on HasMany reference
- Interfaces — What’s the point?
- How can a Word document be created in C#? [closed]
- C# winforms combobox dynamic autocomplete
- How to loop through IEnumerable in batches [duplicate]
- Does page reload ever cause post?
- System.Text.Json: How do I specify a custom name for an enum value?
- Does List guarantee insertion order?
- C# memory address and variable
- Right way to dispose Image/Bitmap and PictureBox
- ASP.NET MVC Routing – add .html extension to routes
- Webdriver How to wait until the element is clickable in webdriver C#
- How to TryParse for Enum value?
- Change flow of messages in Microsoft Bot Framework
- Get a list of distinct values in List
- Comparing floating point values
- WPF WebBrowser Control – position:fixed Element jumps while scrolling (Windows 8)
- Update records using LINQ
- Most efficient way to append arrays in C#?
- When should I use the using Statement? [duplicate]
- How do I mock a class without an interface?
- How can I determine whether Console.Out has been redirected to a file?
- How do I add a reference to an unmanaged C++ project called by a C# project?
- tips on developing resolution independent application
- How do I read input from a USB HID device?
- Binding to custom control inside DataTemplate for ItemsControl
- Access to the path denied error in C#