Click here to Skip to main content
16,006,440 members
Home / Discussions / C#
   

C#

 
GeneralWrapper Code Pin
CyberTech27-Aug-04 8:31
CyberTech27-Aug-04 8:31 
GeneralRe: Wrapper Code Pin
Heath Stewart27-Aug-04 10:37
protectorHeath Stewart27-Aug-04 10:37 
GeneralCounting number of format items in a string Pin
Joe Woodbury27-Aug-04 6:32
professionalJoe Woodbury27-Aug-04 6:32 
GeneralRe: Counting number of format items in a string Pin
Nick Parker27-Aug-04 8:40
protectorNick Parker27-Aug-04 8:40 
GeneralRe: Counting number of format items in a string Pin
Joe Woodbury27-Aug-04 8:59
professionalJoe Woodbury27-Aug-04 8:59 
GeneralRe: Counting number of format items in a string Pin
Nick Parker27-Aug-04 9:29
protectorNick Parker27-Aug-04 9:29 
GeneralRe: Counting number of format items in a string Pin
Joe Woodbury27-Aug-04 11:51
professionalJoe Woodbury27-Aug-04 11:51 
GeneralRe: Counting number of format items in a string Pin
Heath Stewart27-Aug-04 10:21
protectorHeath Stewart27-Aug-04 10:21 
This forum is to help educate posters about concepts, not provide end-to-end solutions. Sample code is just that - sample code. If you want complete solutions, try browsing or searching the articles, but keep in mind that many of those are just samples as well.

To answer your original question, no there is nothing built into the BCL that does this for you, nor should there be - it's simple pattern matching.

If you want to see how Microsoft does it in StringBuilder.AppendFormat (which String.Format and Console.WriteLine ultimately use), then I suggest you open mscorlib.dll in ildasm.exe from the SDK to view the IL, or download a decompiler (keeping in mind that decompilation is a best-guess solution) like .NET Reflector and view the decompiled code in a supported language of your choice (currently C#, VB.NET, and Delphi are supported).

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles]
GeneralRe: Counting number of format items in a string Pin
Joe Woodbury27-Aug-04 12:01
professionalJoe Woodbury27-Aug-04 12:01 
QuestionWhich encoding? Pin
Sebastian Schneider27-Aug-04 2:58
Sebastian Schneider27-Aug-04 2:58 
AnswerRe: Which encoding? Pin
Heath Stewart27-Aug-04 10:43
protectorHeath Stewart27-Aug-04 10:43 
GeneralProblem with RowSelectorColumn Pin
Bhavesh_amin27-Aug-04 2:27
Bhavesh_amin27-Aug-04 2:27 
GeneralRe: Problem with RowSelectorColumn Pin
Heath Stewart27-Aug-04 10:45
protectorHeath Stewart27-Aug-04 10:45 
GeneralColored ListView Column, help please!! Pin
schilled27-Aug-04 1:56
schilled27-Aug-04 1:56 
GeneralRe: Colored ListView Column, help please!! Pin
mav.northwind27-Aug-04 9:57
mav.northwind27-Aug-04 9:57 
Generalstopping "flickering effect" Pin
Stephan Wright27-Aug-04 0:25
Stephan Wright27-Aug-04 0:25 
GeneralRe: stopping "flickering effect" Pin
Corinna John27-Aug-04 1:27
Corinna John27-Aug-04 1:27 
GeneralRe: GetRow Pin
Dave Kreskowiak27-Aug-04 4:05
mveDave Kreskowiak27-Aug-04 4:05 
GeneralRe: GetRow Pin
leppie27-Aug-04 9:33
leppie27-Aug-04 9:33 
GeneralVS.NET Build Actions Pin
Radoslav Bielik26-Aug-04 22:39
Radoslav Bielik26-Aug-04 22:39 
GeneralRe: VS.NET Build Actions Pin
leppie26-Aug-04 23:50
leppie26-Aug-04 23:50 
GeneralRe: VS.NET Build Actions Pin
Radoslav Bielik26-Aug-04 23:57
Radoslav Bielik26-Aug-04 23:57 
GeneralRe: VS.NET Build Actions Pin
Heath Stewart27-Aug-04 10:49
protectorHeath Stewart27-Aug-04 10:49 
GeneralComboBox SelectedValue Problem Pin
mud7726-Aug-04 22:20
mud7726-Aug-04 22:20 
GeneralRe: ComboBox SelectedValue Problem Pin
LongRange.Shooter27-Aug-04 9:28
LongRange.Shooter27-Aug-04 9:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.