Click here to Skip to main content
15,912,837 members
Home / Discussions / C#
   

C#

 
GeneralRe: need help in the Process class Pin
Heath Stewart13-Sep-04 11:40
protectorHeath Stewart13-Sep-04 11:40 
GeneralWinForms - popup config windows in a specified area Pin
TheBlindWatchmaker13-Sep-04 9:23
TheBlindWatchmaker13-Sep-04 9:23 
GeneralRelease memory - newbie doubt Pin
ee9903513-Sep-04 6:55
ee9903513-Sep-04 6:55 
GeneralRe: Release memory - newbie doubt Pin
Nick Parker13-Sep-04 7:30
protectorNick Parker13-Sep-04 7:30 
GeneralRe: Release memory - newbie doubt Pin
ee9903513-Sep-04 7:53
ee9903513-Sep-04 7:53 
GeneralRe: Release memory - newbie doubt Pin
Nick Parker13-Sep-04 8:40
protectorNick Parker13-Sep-04 8:40 
GeneralRe: Release memory - newbie doubt Pin
Heath Stewart13-Sep-04 11:07
protectorHeath Stewart13-Sep-04 11:07 
QuestionHow to wrap the string.Format method? Pin
matthias s.13-Sep-04 6:37
matthias s.13-Sep-04 6:37 
Hi,

I'm writing a logging utility and I need to wrap the string.Format method. I'd like to call the Trace method of MyLog like this:
<br />
MyLog.Trace("Var1:{0};Var2:{1};", MyVar1, MyVar2);<br />

The Trace method should then use the string.Format function to produce a properly looking string. I thought the signature for my Trace method should be:
<br />
public void Trace(string s, object[] args){};<br />

But the compiler complains:
cannot convert from 'string' to 'object[]'
when coding:
<br />
string sFun = "Hello World!";<br />
MyLog.Trace("Say {0}", sFun);<br />


How can this be done? Any help is greatly appreceated.

Matthias


If eell I ,nust draw to your atenttion to het fakt that I can splel perfrectly well - i;ts my typeying that sukcs.
(Lounge/David Wulff)

www.emvoid.de

AnswerRe: How to wrap the string.Format method? Pin
Nick Parker13-Sep-04 7:33
protectorNick Parker13-Sep-04 7:33 
QuestionDirectx -- D3DX.Mesh.Box Samples ? Pin
jlabbe13-Sep-04 6:35
jlabbe13-Sep-04 6:35 
AnswerRe: Directx -- D3DX.Mesh.Box Samples ? Pin
Heath Stewart13-Sep-04 11:01
protectorHeath Stewart13-Sep-04 11:01 
Questionint -&gt; byte[] Howto? Pin
Ariadne13-Sep-04 5:18
Ariadne13-Sep-04 5:18 
AnswerRe: int -&gt; byte[] Howto? Pin
Colin Angus Mackay13-Sep-04 5:43
Colin Angus Mackay13-Sep-04 5:43 
GeneralRe: int -&gt; byte[] Howto? Pin
Ariadne13-Sep-04 19:52
Ariadne13-Sep-04 19:52 
AnswerRe: int -&gt; byte[] Howto? Pin
Heath Stewart13-Sep-04 5:54
protectorHeath Stewart13-Sep-04 5:54 
Generaldebuging timers with in a windows service application Pin
karanba13-Sep-04 4:50
karanba13-Sep-04 4:50 
GeneralRe: debuging timers with in a windows service application Pin
Dave Kreskowiak13-Sep-04 6:14
mveDave Kreskowiak13-Sep-04 6:14 
GeneralRe: debuging timers with in a windows service application Pin
karanba13-Sep-04 20:47
karanba13-Sep-04 20:47 
GeneralNetwork Machine Names from Mapped Drive Letter Pin
ribsmac13-Sep-04 4:17
ribsmac13-Sep-04 4:17 
GeneralRe: Network Machine Names from Mapped Drive Letter Pin
Heath Stewart13-Sep-04 6:25
protectorHeath Stewart13-Sep-04 6:25 
GeneralRe: Network Machine Names from Mapped Drive Letter Pin
Dave Kreskowiak13-Sep-04 6:50
mveDave Kreskowiak13-Sep-04 6:50 
GeneralMemory/Resource Leaks in .NET Pin
Barry Etter13-Sep-04 3:57
Barry Etter13-Sep-04 3:57 
GeneralRe: Memory/Resource Leaks in .NET Pin
Steve Maier13-Sep-04 4:38
professionalSteve Maier13-Sep-04 4:38 
GeneralRe: Memory/Resource Leaks in .NET Pin
Heath Stewart13-Sep-04 6:10
protectorHeath Stewart13-Sep-04 6:10 
GeneralDataGridCell Change Color Pin
Member 119819213-Sep-04 3:33
Member 119819213-Sep-04 3: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.