Articles tagged with ".NET"

Start out with the basics for command line argument processing and exception handling for your console based utilities
Easily add progress reporting to your console apps
A handy code snippet that can set indentation levels while rendering multipart documents with a TextWriter
BinaryReader needs a better way to read strings and types. Here's a quick and dirty fix
A circular buffer implementing IList
A fully generic ordered dictionary class in C#
Slice sections out of a MIDI file, and stretch or compress playback time using this simple utility. Or use the Midi Library to build your own MIDI apps
Creating an application that can run once, but then accept command line args from subsequent runs
Use TaskCompletionSource to turn an event or callback based model into a Task based one
Add progress reporting to your downloading or copying using this code
A B-tree, an AVL tree, and a Splay tree in C#
BinaryReader and BinaryWriter can be used to parse or write binary files more easily and in a portable manner
Easily reuse source from entire projects at the source level instead of the binary level
A small library for providing baseline Context-Free Grammar computations
If you use the CodeDOM, here's an indispensable package to make it awesome.
A helper class that dramatically reduces the amount of code you need to write for the CodeDOM
This tip shows how to create a dynamic JavaScript-like object to be used in web pages and T4 templates.
Easily create single source file drop-ins from multiple C# source files
Leveraging some less well known areas of the .NET Task framework to schedule tasks to execute on your own conditions.
Code generation, faster
Easier Hand Rolled Parsers
This tip demonstrates how to create an app that only allows one instance to run at a time
A relatively safe, simple, yet high performance technique for using lists as dictionary keys.
A crash course in GLR parsing which can be used to parse highly ambiguous grammars
Glory can parse virtually anything, even natural language. Add powerful parsers to your projects. Parse languages like C# or incorporate human language parsing with your AI code.
Extensive performance and API improvements for streaming MIDI and more
Learn how to implement recursive descent parsers, with examples for JSON and an integer expression evaluator
This tip shows you a robust way to get the type of items a collection can hold. It works with non-generic collections too.
Creating a simple parser in 3 easy lessons
Creating a simple parser in 3 easy lessons
Add UTF-32 support and easy foreach streaming to your apps
How to provide custom formatters for string.Format() in C#
Fills a gap in Microsoft's Queue offering with an alternative allowing efficient indexed access
Dependency free, fast, lightweight JSON parsing and light query
A parser generator and tool for exploring LL parsing algorithms
Manage location tracking, lifetime, error reporting and basic parsing/lexing with this simple class
A completely programmable lexer/tokenizer/scanner generator in C# using a Pike Virtual Machine
Easily implement efficient backtracking capabilities over any enumeration
An LL(1) pull parser and generator that thinks it's an LL(k) parser - with a rich, simple and beautiful EBNF syntax
Using Parsley to parse a C# subset into the CodeDOM
Using Parsley to prototype and test hand written parsers
Use the Parsley compositional parser generator to parse a complicated grammar with backtracking.
Quickly build simple parsers with this drop-in source
Generate powerful, maintainable parsers in most major .NET languages using a friendly grammar format
Using PCK to create grammars, parsers and tokenizers for C# and other .NET languages
A parser generator and unification system for different parsing tools
Using PCK's grammar system, and understanding the concepts behind it
Quickly and easily build parsers and tokenizers using Pck's editor
An LALR(1) parsing algorithm as part of Pck
Implementing full list support over custom data structures in .NET
Implementing a visitor pattern over the CodeDOM
A simple helper class to aid in code generation
Easily compare collections for equality
Easily word wrap strings of text in C#
An initial look at a tool to dramatically simplify language agnostic code generation using the CodeDOM
Parse, analyze, and transform your code with Slang
This is a very specialized tool that generates source code to upload files into SPIFFS on an ESP32
Code for parsing, querying, and emitting JSON or a JSON superset
Adapt a TextBox to make it writeable like any other text based I/O
A simple home HTTP server that works across all .NET platforms
Using IEqualityComparer to allow collections to be keys in dictionaries and hashsets
This tip shows you how to do UI updates without having to worry about locking.
How to process large JSON data using a streaming reader
A Non-Backtracking Regular Expression Engine for .NET (Core)
How to implement a complicated multithreaded message passing scenario
Easily add scripting support to your apps using Microsoft's active script technology
Easily create zip packages from source code, suitable for upload on CodeProject
This is a little templating engine build tool I use to make my code generation projects more maintainable.
Add non-backtracking fast DFA regular expression and finite state automata to your projects
Explore, run, and manipulate DFA regular expressions from graphs, to state machines with this library
Hoodwink your computer into doing your work for you using regular expressions
Build a feature rich, non-backtracking regular expression engine and code generator in C#
Build a full featured tokenizer generator in C#
Explore adapting Socket's async model to a task based one and adding some awaitable socket operations to your projects
Creating a simple parser in 3 easy lessons
Using await in scenarios where you want to await custom items with or without using Task.Run()
This article explores a message passing mechanism for safe thread to thread communication
An in depth guide on doing advanced MIDI things. Includes a demo Drum step sequencer and file slicer
A Pike virtual machine and optimizing compiler for regular expressions using an NFA engine
Provides a complete managed API for working with MIDI files, sequences and devices
A regex and finite state engine as part of PCK
Exploit the memory layout of your data to make your P/Invoke code more accessible and maintainable
How to marshal structs that the .NET marshaller just can't handle without a lot of help
A Pike VM for running non-backtracking NFA regular expressions in C#
Add fast scanners/tokenizers to your C# project
Add the ability to run a service in console mode and to control or install your service from the command line
Getting an accurate CodeDOM back from a C# source subset
A Tiny Dynamic Home Webserver in .NET that runs on Core and DNF both (Take 2)
2023-01-10
A far more functional fan controller than before, and some powerful programming techniques
Take control of which thread your code gets executed on, and how it does
Diving into some of the core plumbing behind the Windows operating system
Take a page from .NET and enjoy an easy way to safely pass information between threads on an ESP32
A walkthrough of building a JSON based transparent caching entity framework with branch reuse that intelligently minimizes the amount of server requests, against the use case scenario of accessing TMDb's API