Just Enough Technology Find a String Between 2 Strings | Here’s a way to return a substring of string that is between 2 strings in C#. There are other options for doing this, such as RegEx, but this is clean and simple.
// This search returns the substring between two strings, so
// the first index is moved to the character just after the first string.
int [...]
Related posts:- Create Singleton in C#
- Restore SQL Database
- Title Case in C#
| | 5/19/2010 7:18:00 PM |
|
Just Enough Technology Restore SQL Database | Restoring a SQL Server database from a backup is easy to accomplish in the SQL Server IDE. Well, sometimes. In the real world, I often need to restore a development database, but the restore fails because I cannot gain exclusive access to the database. Some developers will detach the database and reattach it to grab [...]
Related posts:- Find a String Between 2 Strings
- Create Singleton in C#
- Title Case in C#
| | 5/17/2010 5:13:44 PM |
|
|
|
Just Enough Technology Create Singleton in C# | One of the most basic and most useful object patterns is the Singleton design pattern. A Singleton is a class of which there will only be one instance created at any time. All users of the Singleton class will all use the same instance. This is great for a wide range of applications such as [...]
Related posts:- Find a String Between 2 Strings
- Restore SQL Database
- Title Case in C#
| | 5/10/2010 11:02:57 PM |
|
Just Enough Technology Title Case in C# | Here a quick snippet to convert text to Title Case in C# that uses the TextInfo class. Note that strings with all caps will not be converted, so convert to lower case first.
// Defines the string with mixed casing.
string myString = "this iS a StrIng with MIXED CaSe";
// Create a TextInfo based on the "en-US" [...]
Related posts:- Find a String Between 2 Strings
| | 5/5/2010 10:05:31 PM |
|
Just Enough Technology Eco-Friendly PC Disposal | What do you do with old PCs, cell phones and other e-devices? Staples has an eco-friendly disposal program. Dell products are free as are cell phones and some other devices. Other PCs, laptops cost about $10 US. They also destroy the data on the drives.
Be friendly to the planet when you [...]
Related posts:- Another Security Breach
| | 3/31/2010 9:47:45 AM |
|
|
|
Just Enough Technology Move User Profile to 2nd Drive in Win 7 | Well, this was an interesting foray into Windows 7. I just purchased a new laptop and didn’t like the way the hard drive was partitioned. Why partition an NTFS drive at all? The manufacturer had created an 80 GB primary partition with a 420 GB extended partition. Of course the OS and user profiles are [...]
Related posts:- Windows 7 God Mode
- Risk Management in Requisite Pro
| | 3/10/2010 2:46:48 PM |
|
|
|
|
|