C# 411

Web Name: C# 411

WebSite: http://www.csharp411.com

ID:189948

Keywords:

,

Description:

About C# 411 CSharp411.com is a blog written by Tim Toady about the C# programming language and .NET Framework. Tim Toady is the founder of Browserling Inc, a cross-browser testing service. This site contains C# information, code, tips and news. -More-C# Information Here s an interesting new project. It s called DevURLs and it s a really nice developer news aggregator. It collects news stories from top 30 software development websites and programming blogs and presents it in a neat way.This website is now my homepage and I visit it multiple times a day to get my daily dose of programming news. Here s something that all you, my fellow C# developers, will find useful. Yesterday a company called Browserling announced that they re launching a network of online developer tools.If you haven t heard about Browserling then you should check them out. They re a friendly and fun cross-browser testing service and they ve created and open-sourced over a hundred projects, including browserify for node.js.Online developer tools network is a collection of websites where each website focuses on a single category of developer tools. Right now there are four websites in the network and they re releasing 30 more websites over the next couple of years.Online String Tools A collection of online string utilitiesOnline JSON Tools A collection of online JSON utilitiesOnline XML Tools A collection of online XML utilitiesOnline CSV Tools A collection of online CSV utilitiesAll websites in the network are ad-free. The reason why Browserling built this network is because their developers got fed up with other online services that offer similar tools. They were often filled with ads, popunders, blinking buttons and other crap. Browserling s developers had had enough of this and they decided to create their own utilities that just work in your browser and do the right thing.Let s take a look at each site in more details.Online String ToolsString Tools for DevelopersOnline String Tools has hundreds of tiny string utilities for converting strings, generating strings, encoding/decoding strings, filtering and replacing strings and more. All string utilities work right in your browser. There is no server-side processing going on and everything is super fast. Online JSON ToolsJSON Tools for DevelopersOnline JSON Tools has two dozen utilities for working with JSON config files and JSON documents. Just like string tools, JSON tools work in your browser and are powered by modern JavaScript code, which makes them very fast. You can convert JSON to various data formats, encode and decode JSON, and compress, validate and prettify JSON.Online XML ToolsXML Tools for DevelopersSimilar to string and JSON tools, this website offers two dozen utilities for working with XML configuration files and XML documents. All tools on this website also work inside your browser and nothing gets sent to the server. You can pretty much do all XML tasks with these tools. For example, you can compress XML, prettify XML and validate XML documents, and you can also convert XML to other data formats, such as YAML, TSV, CSV, JSON and Base64.Online CSV ToolsCSV Tools for DevelopersOnline CSV Tools offers over two dozen different utilities for working with CSV data files. All CSV data processing happens in the browser and it s super fast. You can convert CSV to a bunch of other data formats, like JSON and YAML, then you can work with CSV columns and rows. You can insert rows, swap columns, as well as change CSV delimiter and change quoting of CSV fields.What s next?Browserling loves marathons. They will be adding 30 more websites to their network over the next 5 years. Here are some of the other sites they will be launching:Online BROWSER Tools A collection of browser/web developer toolsOnline YAML Tools A collection of Yet Another Markup Language toolsOnline TSV Tools A collection of Tab Separated Values toolsOnline IMAGE Tools A collection of image editing toolsOnline AUDIO Tools A collection of audio editing toolsOnline PDF Tools A collection of PDF editing toolsOnline CRYPTO Tools A collection of cryptography toolsOnline RANDOM Tools A collection of randomization toolsOnline FILE Tools A collection of file editing toolsOnline TIME Tools A collection of various time and date toolsOnline LIST Tools A collection of tools for working with data listsOnline CSS Tools A collection of CSS toolsOnline JS Tools A collection of JavaScript tools and more websites!If you found these tools useful, please follow Browserling on Twitter and follow Browserling on Facebook. I have a friend who is just starting to learn C#, so I am getting some interesting questions whose answers seem obvious to me but apparently not to beginners. Today I answer the question: What’s the best way to initialize Flags enumerations in C#?As a quick review, here is how Microsoft describes the Flags enumeration: “You can use an enumeration type to define bit flags, which enables an instance of the enumeration type to store any combination of the values that are defined in the enumerator list. (Of course, some combinations may not be meaningful or allowed in your program code.) You create a bit flags enum by applying the System.FlagsAttribute attribute and defining the values appropriately so that AND, OR, NOT and XOR bitwise operations can be performed on them.”In other words, each enumeration value must correspond to a single, unique bit. So one way to initialize flags is to use integers that are a power of 2. The disadvantage of this method is it’s not easy to see which bit is being set, and errors might creep in enumerations with many flags, especially when you start getting up into the range of 16384, 32768, 65536, and 131072. But there is nothing inherently wrong with this approach either:[Flags]public enum DaysOfTheWeek None = 0, Sunday = 1, Monday = 2, Tuesday = 4, Wednesday = 8, Thursday = 16, Friday = 32, Saturday = 64,} Read the rest of this entry I was using Visual Studio on my laptop when suddenly the font in the code editor got so small I could barely read it. I figured I must have engaged some obscure key sequence, so I did a little research and discovered there are many ways to change the zoom level in Visual Studio:Keyboard ShortcutsTo make the font larger, press CTRL+SHIFT+PERIOD To make the font smaller, press CTRL+SHIFT+COMMA Keyboard+Mouse ShortcutsTo make the font larger, press hold the CTRL key while scrolling the mouse wheel up one click To make the font smaller, press hold the CTRL key while scrolling the mouse wheel down one click Note this also works with the trackpad on most laptops. Sliding your finger up or down along the right edge of the trackpad is the same as scrolling the mouse wheel. By the way, I had the CTRL key pressed while I slid my finger down along the right edge of the trackpad, and this is how I accidentally made the font really small. Also note that each click increases or decreases the font size by 10%. Read the rest of this entry C# modeling tools help you model, visualize, analyze, understand and document C# source code. Most modeling tools use the Unified Modeling Language (UML), which is a standardized way to create visual models from object-oriented source code.Following is a list of modeling tools that run on Microsoft Windows and model software written with the C# programming language. Prices listed are direct from the manufacturer for a single license of the “Professional Version” which includes C# round-trip engineering. This means the modeling tool can read C# source code and generate models, allow the user to make changes to the model, then automatically generate the updated C# code. Foreign prices are converted to U.S. Dollars at the current exchange rate. Please comment with any corrections or additions, as I will keep this list updated. Read the rest of this entry Wow, I nearly fell out of my chair when I read this little gem on TechCrunch:Android chief Andy Rubin wrote in a 2005 email, “If Sun doesn’t want to work with us, we have two options: 1) Abandon our work and adopt MSFT CLR VM and C# language – or – 2) Do Java anyway and defend our decision, perhaps making enemies along the way.”Imagine how different the world would be today if Google had chosen .NET instead of Java as the native development framework for the Android mobile operating system…Read more at DevTopics An enumerator enables you to iterate over a collection in a foreach loop. You can use foreach to iterate over all C# collection classes, because all C# collection classes inherit from the IEnumerable interface (regular or generic). IEnumerable contains the GetEnumerator method, which returns an enumerator.Occasionally you may find a need to create a custom enumerator, which used to be somewhat of a challenge until the yield keyword was introduced. Here is how Microsoft describes yield:The yield keyword signals to the compiler that the method in which it appears is an iterator block. The compiler generates a class to implement the behavior that is expressed in the iterator block. In the iterator block, the yield keyword is used together with the return keyword to provide a value to the enumerator object. This is the value that is returned, for example, in each loop of a foreach statement.So rather than creating your own enumerator class and managing the enumeration state which is time consuming and tricky you can simply write the enumeration logic in the GetEnumerator method, and the yield keyword will automagically wrap your code in a handy-dandy enumerator. Read the rest of this entry I jump into the controversy about the future of the .NET Framework and HTML5+JavaScript.Read “.NET Isn’t Dead” on DevTopics.com YourLanguageSucks is a wiki on theory.org that lists reasons why the most popular programming languages suck. There are long lists of reasons why Java, JavaScript, C++ and PHP suck. But the list for C# is very short:Supports goto . Two distinct sets of collections: non-generic and generic. Stack and Queue have the same name in both their generic and non-generic flavors, but then we have Hashtable (non-generic) and Dictionary (generic). The first reason is easy to discount: just avoid using goto! The second reason is valid, but not really an issue if you use only generic collections, as I do.Read the rest on DevTopics Error MSB4019: The imported project C:Microsoft.CSharp.targets was not found. Confirm that the path in the Import declaration is correct, and that the file exists on disk. Read the rest of this entry

TAGS: 

<<< Thank you for your visit >>>

Websites to related :
Augusta Marine | New Used Boats

  4250 Belair Frontage Road Augusta, GA 30909 US Phone: 706-481-9336 Email: dwhyte@augustamarine.com,callie@augustamarine.com,jc@augustamarine.com Fax:

Pfx.Ribbon.WordAddIn Download

  Pfx.Ribbon.WordAddIn1.0Choose the most popular programs from Developer Tools Pfx.Ribbon.WordAddIn is developed by Pfx.Ribbon.WordAddIn and is used by

A small blog on PKI related thin

  Not much blogging from my side the last 2 years, but now it´s finally time for a new post.One of my last posts was about YubiHSM2 and the ultra-small

EniG. Periodic Table of the Elem

  Triple point of oxygen (54.3584 K, -218.7916 C)Triple point of argon (83.8058 K, -189.3442 C)Triple point of mercury (234.3156 K, -38.8344 C)Triple po

Pridgeon Clay - Welcome

  Welcome to Pridgeon & Clay Pridgeon & Clay is one of the largest independent, value-added manufacturers and suppliers of automotive stamped and fine-b

Australian Peacekeeper and Peace

  The purpose of the APPVA is to support the transition, health, wellbeing, and integration into society of all participants in past and present operati

Mideco

  Welcome to Mideco Mideco Group is a JAS-Certified importer of organic food, trading exclusively in organic farm products. ミデコグループは、小売チェ

5 Sterne Wellness Hotel Ostsee a

  So nah am MeerWillkommen in Ihrem 5 Sterne Superior Thermenhotel direkt an der Ostsee! Ankommen. Abtauchen. Aufatmen.Umsorgt mit 5-Sterne-Herzlichkeit

Pendragon Press

  Pendragon now makes many of its titles available in Ebook format. They are listed on Boydell and Brewer's website at https://boydellandbrewer.com/cata

Dinosaur Toy Blog at dinotoyblog

  Spinosaurus (Inflatable Animals by Ravensden) August 27, 2021Guest ReviewstheropodGenus: SpinosaurusComments: 2 Review and photographs by DrWheelie

ads

Hot Websites