Click here to Skip to main content
15,923,120 members
Home / Discussions / C#
   

C#

 
GeneralRe: math functions in C# ??? Pin
James T. Johnson16-Mar-02 19:32
James T. Johnson16-Mar-02 19:32 
GeneralRe: math functions in C# ??? Pin
David Wengier16-Mar-02 19:57
David Wengier16-Mar-02 19:57 
GeneralRe: math functions in C# ??? Pin
Kannan Kalyanaraman16-Mar-02 5:11
Kannan Kalyanaraman16-Mar-02 5:11 
Generalsprintf equivalent in c# Pin
Kannan Kalyanaraman15-Mar-02 18:52
Kannan Kalyanaraman15-Mar-02 18:52 
GeneralRe: sprintf equivalent in c# Pin
Christian Graus15-Mar-02 18:57
protectorChristian Graus15-Mar-02 18:57 
GeneralRe: sprintf equivalent in c# Pin
James T. Johnson15-Mar-02 19:34
James T. Johnson15-Mar-02 19:34 
GeneralRe: sprintf equivalent in c# Pin
Kannan Kalyanaraman15-Mar-02 20:06
Kannan Kalyanaraman15-Mar-02 20:06 
GeneralRe: sprintf equivalent in c# Pin
James T. Johnson15-Mar-02 20:53
James T. Johnson15-Mar-02 20:53 
Kannan Kalyanaraman wrote:
'string' is the simple type - does this encapsulate the 'String' type of the framework.

string is the C# name for .NET's String type, same for int/Int32, byte/Byte, char/Char, etc. In each case its just a different capitalization for the Framework name, everything else is the same Smile | :)

Kannan Kalyanaraman wrote:
Is that true that variables of type 'string' is created in the stack and the 'String' is created in the heap.

Nope, String is a reference type so it is created on the heap. But strings can made Interned since I can't explain it very where here is a copy 'n paste from the docs.

The common language runtime automatically maintains a table, called the "intern pool", which contains a single instance of each unique literal string constant declared in a program, as well as any unique instance of String you add programmatically.

The intern pool conserves string storage. If you assign a literal string constant to several variables, each variable is set to reference the same constant in the intern pool instead of referencing several different instances of String that have identical values.

This might be what you are thinking of instead of the stack/heap Smile | :)

James

Sonork ID: 100.11138 - Hasaki
"Smile your little smile, take some tea with me awhile.
And every day we'll turn another page.
Behind our glass we'll sit and look at our ever-open book,
One brown mouse sitting in a cage."
"One Brown Mouse" from Heavy Horses, Jethro Tull 1978

GeneralRe: sprintf equivalent in c# Pin
Kannan Kalyanaraman16-Mar-02 5:04
Kannan Kalyanaraman16-Mar-02 5:04 
General@#$%(#($ Microsoft and GDI+ Pin
Christian Graus15-Mar-02 1:08
protectorChristian Graus15-Mar-02 1:08 
GeneralRe: @#$%(#($ Microsoft and GDI+ Pin
Jason Hooper15-Mar-02 3:55
Jason Hooper15-Mar-02 3:55 
GeneralRe: @#$%(#($ Microsoft and GDI+ Pin
James T. Johnson15-Mar-02 8:01
James T. Johnson15-Mar-02 8:01 
GeneralRe: @#$%(#($ Microsoft and GDI+ Pin
Eric Gunnerson (msft)15-Mar-02 14:25
Eric Gunnerson (msft)15-Mar-02 14:25 
GeneralRe: @#$%(#($ Microsoft and GDI+ Pin
Christian Graus15-Mar-02 14:32
protectorChristian Graus15-Mar-02 14:32 
GeneralC# vs VB.NET. Facts not opinions please :) Pin
David Wengier15-Mar-02 0:49
David Wengier15-Mar-02 0:49 
GeneralRe: C# vs VB.NET. Facts not opinions please :) Pin
Christian Graus15-Mar-02 1:01
protectorChristian Graus15-Mar-02 1:01 
GeneralRe: C# vs VB.NET. Facts not opinions please :) Pin
James T. Johnson15-Mar-02 7:42
James T. Johnson15-Mar-02 7:42 
GeneralRe: C# vs VB.NET. Facts not opinions please :) Pin
James T. Johnson15-Mar-02 7:56
James T. Johnson15-Mar-02 7:56 
GeneralC# - my first stupid question Pin
Christian Graus14-Mar-02 23:27
protectorChristian Graus14-Mar-02 23:27 
GeneralRe: C# - my first stupid question Pin
James T. Johnson15-Mar-02 7:40
James T. Johnson15-Mar-02 7:40 
GeneralRe: C# - my first stupid question Pin
Christian Graus15-Mar-02 9:11
protectorChristian Graus15-Mar-02 9:11 
GeneralRe: C# - my first stupid question Pin
James T. Johnson15-Mar-02 9:26
James T. Johnson15-Mar-02 9:26 
GeneralRe: C# - my first stupid question Pin
Christian Graus15-Mar-02 9:24
protectorChristian Graus15-Mar-02 9:24 
GeneralRe: C# - my first stupid question Pin
Eric Gunnerson (msft)15-Mar-02 14:28
Eric Gunnerson (msft)15-Mar-02 14:28 
GeneralRe: C# - my first stupid question Pin
Christian Graus15-Mar-02 14:33
protectorChristian Graus15-Mar-02 14:33 

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.