In the previous tutorial we covered some basic structure of a C# program and what it looks like. I would like to build upon that knowledge and cover some of the basic syntax of C#, some of this may be slightly repetitive from the previous tutorial but it is important to get this basic syntax down. Continue reading “C# for Beginners [Part 2]”
Ok so yesterday I received a request to do a C# tutorial covering the basics of the C# language. This will be a short multi-part tutorial on the basics of C#. In Part 1 we’re going to cover some basic structure and syntax. I do not intend to get too in-depth but cover just enough to allow others to be able to start writing simple programs and get comfortable with the language syntax.
Building off the previous tutorial SQLite in C# [Part 1] we are going to get a little more in detail with SQLite and populate our database with some information that we can pull back out later.
Lets start off with inserting information into our database. We will do this in a similar fashion as we did creating our database table. By creating a query string, passing it to a SQLiteCommand, and then executing the command.
I can’t tell you how many times I am working on an application that I want to store data in an organized fashion but I don’t want the dependency of an external server. Maybe I want to be able to use the application offline? Or maybe the device I am running it on doesn’t have the ability to hold a database server.
Enter the realm of SQLite. I have used it extensively in the past with simple Python and PHP applications, but now I figured I’d give a good overview of using it with C# and .NET.
- async Main method
- default literal expressions
- inferred tuple names
Below I’ll go into some detail on each of the new features and show some examples of each, along with how to update your current project to the new C#7.1 update.
Well last night I got an idea. I like to checkout the TOR Hidden Services from time to time but it’s a pain in the tail just trying to find a link that actually works. So I cooked up the OnionScanner! It’s basically just a TOR link checker. But feel free to check it out on the home site or on GitHub and let me know what you think. If you have some ways to improve on it feel free to put in a request. Even if you just want to port it to another language to make it cross-platform I would greatly appreciate it!