Skip to Main Content
C# in a Nutshell, Second Edition
book

C# in a Nutshell, Second Edition

by Peter Drayton, Ben Albahari, Ted Neward
August 2003
Intermediate to advanced content levelIntermediate to advanced
928 pages
32h 1m
English
O'Reilly Media, Inc.
Content preview from C# in a Nutshell, Second Edition

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 int ANSICodePage{get; }
   public virtual int EBCDICCodePage{get; }
   public virtual string ListSeparator{get; }
   public virtual int MacCodePage{get; }
   public virtual int OEMCodePage{get; }
// Public Instance Methods
   public override bool Equals(object obj);          
// overrides object
   public override int GetHashCode( );    
// overrides object
   public virtual char ToLower(char c);
   public virtual string ToLower(string str);
   public override string ToString( );    
// overrides object
   public string ToTitleCase(string str);
   public virtual char ToUpper(char c);
   public virtual 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# in a Nutshell

C# in a Nutshell

Ben Albahari, Ted Neward, Peter Drayton
C# 7.0 in a Nutshell

C# 7.0 in a Nutshell

Joseph Albahari, Ben Albahari
C# Cookbook, 2nd Edition

C# Cookbook, 2nd Edition

Jay Hilyard, Stephen Teilhet
C# Cookbook

C# Cookbook

Stephen Teilhet, Jay Hilyard

Publisher Resources

ISBN: 0596005261Catalog PageErrata