Skip to Main Content
C# in a Nutshell
book

C# in a Nutshell

by Ben Albahari, Ted Neward, Peter Drayton
March 2002
Intermediate to advanced content levelIntermediate to advanced
864 pages
31h 8m
English
O'Reilly Media, Inc.
Content preview from C# in a Nutshell

Name

TextInfo

Synopsis

This class is used to describe certain properties of the writing system in use by a culture. The properties of this class specify system-specific and standardized code pages for text, as well as the ListSeparator string (a “,” for the invariant culture). TextInfo defines methods that determine casing semantics per culture. For example, ToLower() returns the lowercase version of the specified character or string. The ToTitleCase() method capitalizes the first letter of each word in a string.

public class TextInfo : System.Runtime.Serialization.IDeserializationCallback {
// Public Instance Properties
   public virtual field int ANSICodePage{get; } 
   public virtual field int EBCDICCodePage{get; } 
   public virtual field string ListSeparator{get; } 
   public virtual field int MacCodePage{get; } 
   public virtual field int OEMCodePage{get; } 
// Public Instance Methods
   public override method bool Equals(object obj);              // overrides object
   public override method int GetHashCode();                     // overrides object
   public virtual method char ToLower(char c);  
   public virtual method string ToLower(string str);  
   public override method string ToString();                     // overrides object
   public method string ToTitleCase(string str);  
   public virtual method char ToUpper(char c);  
   public virtual method string ToUpper(string str);  
}

Returned By

CultureInfo.TextInfo

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C# 8.0 in a Nutshell

C# 8.0 in a Nutshell

Joseph Albahari, Eric Johannsen
C# 10 in a Nutshell

C# 10 in a Nutshell

Joseph Albahari
C# in a Nutshell, Second Edition

C# in a Nutshell, Second Edition

Peter Drayton, Ben Albahari, Ted Neward
Code like a Pro in C#

Code like a Pro in C#

Jort Rodenburg

Publisher Resources

ISBN: 0596001819Catalog PageErrata