Text code snippets (65)
How to declare multiline strings
Published: 15. February 2012 | Updated: 15. February 2012Categories: Basics Strings
Tags: Basics C# Text
How to convert string to char array and vice versa
Published: 15. February 2012 | Updated: 15. February 2012Categories: Strings
Tags: Array Basics C# Text
How to truncate text
Published: 30. January 2012 | Updated: 30. January 2012Categories: Strings
Tags: Basics C# Text
How to convert string array to integer array
Published: 1. December 2011 | Updated: 1. December 2011Categories: Numbers
Tags: C# Conversion Text
How to remove formatting from numerical string
Published: 1. December 2011 | Updated: 1. December 2011Categories: Strings
Tags: C# Formatting Text
How to generate random text
Published: 30. November 2011 | Updated: 30. November 2011Categories: Strings
Tags: C# Testing Text
How to repeat character
Published: 30. November 2011 | Updated: 30. November 2011Categories: Strings
Tags: C# Text
How to escape curly brace in String.Format
Published: 30. November 2011 | Updated: 30. November 2011Categories: Strings
Tags: C# Text
How to compare strings with ignoring the case
Published: 25. November 2011 | Updated: 25. November 2011Categories: Strings
Tags: Basics C# Text
How to create path from strings parts
Published: 25. October 2011 | Updated: 25. November 2011Categories: File system
Tags: C# File System Text
How to indent text in console applications
Published: 25. November 2011 | Updated: 25. November 2011Categories: Consoles
Tags: C# Console Text
How to get new line
Published: 23. November 2011 | Updated: 23. November 2011Categories: Strings
Tags: Basics C# Text
How to convert string to enum
Published: 23. November 2011 | Updated: 23. November 2011Categories: Converting
Tags: C# Conversion Enums Text
How to use and retrieve enum description attribute
Published: 4. November 2011 | Updated: 4. November 2011Categories: Attributes Enums
Tags: Attributes C# Enums Text
How to append to a text file
Published: 3. November 2011 | Updated: 3. November 2011Categories: Files
Tags: C# File System Text
How to convert string to bytes and vice versa for various encodings
Published: 2. November 2011 | Updated: 2. November 2011Categories: Converting Strings
Tags: C# Conversion Text
How to get information about all encodings
Published: 2. November 2011 | Updated: 2. November 2011Categories: Strings
Tags: C# Text
How to convert bytes to base-64 string and vice versa
Published: 2. November 2011 | Updated: 2. November 2011Categories: Converting
Tags: C# Conversion Text
How to validate and parse decimal
Published: 1. November 2011 | Updated: 1. November 2011Categories: Numbers
Tags: C# Conversion Text Validation
How to get Unicode Category for character
Published: 31. October 2011 | Updated: 31. October 2011Categories: Strings
Tags: Basics C# Text
How to find out whether character is control
Published: 31. October 2011 | Updated: 31. October 2011Categories: Strings
Tags: Basics C# Text
How to find out whether character is lowercase or uppercase
Published: 31. October 2011 | Updated: 31. October 2011Categories: Strings
Tags: Basics C# Text
How to find out whether character is white space
Published: 31. October 2011 | Updated: 31. October 2011Categories: Strings
Tags: Basics C# Text
How to find out whether character is separator
Published: 31. October 2011 | Updated: 31. October 2011Categories: Strings
Tags: Basics C# Text
How to find out whether character is symbol
Published: 31. October 2011 | Updated: 31. October 2011Categories: Strings
Tags: Basics C# Text
How to find out whether character is letter
Published: 31. October 2011 | Updated: 31. October 2011Categories: Strings
Tags: Basics C# Text
How to find out whether character is digit
Published: 31. October 2011 | Updated: 31. October 2011Categories: Strings
Tags: Basics C# Text
How to find out whether character is punctuation mark
Published: 31. October 2011 | Updated: 31. October 2011Categories: Strings
Tags: Basics C# Text
How to validate datetime
Published: 27. October 2011 | Updated: 27. October 2011Categories: DateTime & TimeSpan
Tags: C# Text Validation
How to format a string
Published: 27. October 2011 | Updated: 27. October 2011Categories: Strings
Tags: C# Formatting Text
How to format numbers
Published: 14. January 2009 | Updated: 26. October 2011Categories: Strings
Tags: C# Formatting Text
How to get substring from text
Published: 14. October 2011 | Updated: 26. October 2011Categories: Strings
Tags: Basics C# Text
How to convert string to lowercase
Published: 14. October 2011 | Updated: 26. October 2011Categories: Strings
Tags: Basics C# Text
How to convert string to uppercase
Published: 14. October 2011 | Updated: 26. October 2011Categories: Strings
Tags: Basics C# Text
How to trim string
Published: 14. October 2011 | Updated: 26. October 2011Categories: Strings
Tags: Basics C# Text
How to get string length
Published: 14. October 2011 | Updated: 26. October 2011Categories: Strings
Tags: Basics C# Text
How to replace specified string in string
Published: 14. October 2011 | Updated: 26. October 2011Categories: Strings
Tags: Basics C# Text
How to get the last index of character in string
Published: 14. October 2011 | Updated: 26. October 2011Categories: Strings
Tags: Basics C# Text
How to efficiently concat multiple strings
Published: 26. September 2011 | Updated: 26. October 2011Categories: Strings
Tags: C# Performance Text
How to get the first index of character in string
Published: 14. October 2011 | Updated: 26. October 2011Categories: Strings
Tags: Basics C# Text
How to escape string
Published: 24. October 2011 | Updated: 26. October 2011Categories: Strings
Tags: C# Text
How to replace text using regular expressions
Published: 24. October 2011 | Updated: 26. October 2011Categories: Regex
Tags: C# Regex Text
How to search text using regular expressions
Published: 24. October 2011 | Updated: 26. October 2011Categories: Regex
Tags: C# Regex Text
How to search text with named groups using regular expressions
Published: 24. October 2011 | Updated: 26. October 2011Categories: Regex
Tags: C# Regex Text
How to search multiple texts with named groups using regular expressions
Published: 24. October 2011 | Updated: 26. October 2011Categories: Regex
Tags: C# Regex Text
How to split text using regular expresions
Published: 24. October 2011 | Updated: 26. October 2011Categories: Regex
Tags: C# Regex Text
How to parse DateTime in exact/specific format
Published: 20. October 2011 | Updated: 26. October 2011Categories: DateTime
Tags: C# Conversion DateTime Text
How to get invalid path/filename characters
Published: 25. October 2011 | Updated: 25. October 2011Categories: File system
Tags: C# Text
How to change file extension
Published: 25. October 2011 | Updated: 25. October 2011Categories: Files
Tags: C# Text
How to parse path
Published: 25. October 2011 | Updated: 25. October 2011Categories: File system
Tags: C# Text
How to escape/unescape string for url
Published: 19. October 2011 | Updated: 19. October 2011Categories: Network
Tags: C# Text
How to convert character to hexadecimal equivalent
Published: 19. October 2011 | Updated: 19. October 2011Categories: Converting
Tags: C# Conversion Text
How to format number as scientific/exponential
Published: 19. October 2011 | Updated: 19. October 2011Categories: Math
Tags: C# Formatting Math Text
How to format number with leading zeros
Published: 14. October 2011 | Updated: 14. October 2011Categories: Framework
Tags: C# Formatting Text
How to get input text in console application
Published: 9. October 2011 | Updated: 9. October 2011Categories: Consoles
Tags: C# Console Text
How to convert SecureString to string
Published: 30. September 2011 | Updated: 30. September 2011Categories: Converting Security
Tags: C# Security Text Windows
How to render high quality antialiased text
Published: 27. January 2009 | Updated: 26. September 2011Categories: GDI
Tags: C# GDI Text Winforms
How to save / load RTF document using RichTextBox
Published: 21. January 2009 | Updated: 21. January 2009Categories: Winforms
Tags: C# Text Winforms
How to draw centered text
Published: 21. January 2009 | Updated: 21. January 2009Categories: GDI
Tags: C# GDI Text Winforms
How to get installed fonts
Published: 20. January 2009 | Updated: 20. January 2009Categories: Windows
Tags: C# Text Windows
How to protect data using user or machine credentials
Published: 5. January 2009 | Updated: 5. January 2009Categories: Encryption Windows
Tags: C# Security Text Windows
How to parse connection string
Published: 22. December 2008 | Updated: 22. December 2008Categories: Databases
Tags: C# SQL Text
How to get file extension
Published: 15. December 2008 | Updated: 15. December 2008Categories: Files
Tags: C# File System Text Windows
How to read text from file
Published: 15. December 2008 | Updated: 15. December 2008Categories: Files
Tags: C# File System Text
How to create MD5 from string
Published: 14. December 2008 | Updated: 14. December 2008Categories: Security
Tags: C# Security Text





