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

C#

 
GeneralDatabinding and xml Pin
Mazdak16-Mar-02 4:01
Mazdak16-Mar-02 4:01 
Questionmath functions in C# ??? Pin
Christian Graus15-Mar-02 21:55
protectorChristian Graus15-Mar-02 21:55 
AnswerRe: math functions in C# ??? Pin
Christian Graus15-Mar-02 22:08
protectorChristian Graus15-Mar-02 22:08 
GeneralRe: math functions in C# ??? Pin
Nish Nishant15-Mar-02 22:10
sitebuilderNish Nishant15-Mar-02 22:10 
GeneralRe: math functions in C# ??? Pin
Christian Graus15-Mar-02 22:21
protectorChristian Graus15-Mar-02 22:21 
GeneralRe: math functions in C# ??? Pin
James T. Johnson16-Mar-02 15:29
James T. Johnson16-Mar-02 15:29 
GeneralRe: math functions in C# ??? Pin
Paul Watson18-Mar-02 6:12
sitebuilderPaul Watson18-Mar-02 6:12 
GeneralRe: math functions in C# ??? Pin
Christian Graus18-Mar-02 8:11
protectorChristian Graus18-Mar-02 8:11 
Paul Watson wrote:
Funny how I lile the fact that I have to type in the class name first and then it's method to use it, while you think it is naff. I guess I like the structure of it, it helps to structure the app in my head better than if all I had to type was Min.

I dunno what VB offers, but in C++, math is a library which provides these functions, so I am just used to the language offering maths facilities without the need for my code to be full of Math.

Paul Watson wrote:
Just FYI, and you probably do know this, you can instead of doing Math m do using m = System.Math;. Has much the same affect, but it is across your whole class, not just a procedure.

Yes, I realise that, thanks. It gives me the overhead of creating a class and still looks ugly.

Paul Watson wrote:
And the old way would be to just wrap it in a normal function called Min of course

As a C++ programmer, the old way is to wrap it in a macro, so it occurs in place. I am writing image processing code, as you will see when Chris posts the first article. Is there a way to inline code in C#, do you know ? Image processing is an area where every clock cycle counts.

Paul Watson wrote:
I certainly now see the advantage of understanding the underlying strutcute when it comes to developing

I suspect based on what I hear that VB.NET is structed a lot better than prior versions, so it's no wonder that it's now making such things clear to you. ON the other hand, I feel C# is hiding too much from me, but I can certainly see how that is helping me develop this thing faster than I would in C++, which is a *good* thing. But it is a ton slower to process the same image as the equivelant C++ code, and I dunno how much of that is ways I cannot optimise code compared to the C++ version, and how much is the CLR.


Christian

The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

"I'm thinking of getting married for companionship and so I have someone to cook and clean." - Martin Marvinski, 6/3/2002
GeneralRe: math functions in C# ??? Pin
Dale Thompson21-Mar-02 4:37
Dale Thompson21-Mar-02 4:37 
GeneralRe: math functions in C# ??? Pin
Christian Graus21-Mar-02 9:04
protectorChristian Graus21-Mar-02 9:04 
GeneralRe: math functions in C# ??? Pin
David Wengier15-Mar-02 22:55
David Wengier15-Mar-02 22:55 
GeneralRe: math functions in C# ??? Pin
Christian Graus15-Mar-02 23:19
protectorChristian Graus15-Mar-02 23:19 
GeneralRe: math functions in C# ??? Pin
David Wengier15-Mar-02 23:21
David Wengier15-Mar-02 23:21 
GeneralRe: math functions in C# ??? Pin
Anders Molin16-Mar-02 13:33
professionalAnders Molin16-Mar-02 13:33 
GeneralRe: math functions in C# ??? Pin
David Wengier16-Mar-02 13:44
David Wengier16-Mar-02 13:44 
GeneralRe: math functions in C# ??? Pin
Christian Graus16-Mar-02 13:49
protectorChristian Graus16-Mar-02 13:49 
GeneralRe: math functions in C# ??? Pin
James T. Johnson16-Mar-02 15:41
James T. Johnson16-Mar-02 15:41 
GeneralRe: math functions in C# ??? Pin
David Wengier16-Mar-02 19:26
David Wengier16-Mar-02 19:26 
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 

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.