Click here to Skip to main content
15,891,981 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to modify the data in xml file? Pin
Stefan Troschuetz20-Sep-06 3:38
Stefan Troschuetz20-Sep-06 3:38 
GeneralRe: How to modify the data in xml file? Pin
CooperWu20-Sep-06 3:54
CooperWu20-Sep-06 3:54 
QuestionHow to get access to NET2.0 methods in VS2005 Pin
Atlemann20-Sep-06 3:14
Atlemann20-Sep-06 3:14 
AnswerRe: How to get access to NET2.0 methods in VS2005 Pin
Dave Kreskowiak20-Sep-06 6:18
mveDave Kreskowiak20-Sep-06 6:18 
QuestionData Relation / Databinding Correct With XML visible -sorry Pin
harwanegg20-Sep-06 3:10
harwanegg20-Sep-06 3:10 
QuestionData Relation / Databinding Pin
harwanegg20-Sep-06 3:08
harwanegg20-Sep-06 3:08 
Questionhorizontal scrollbar for ListView component in my WinForm Pin
a#@20-Sep-06 2:47
a#@20-Sep-06 2:47 
QuestionFunction method Pin
Kasic Slobodan20-Sep-06 2:45
Kasic Slobodan20-Sep-06 2:45 
I have a function GetVersion() that returns the version (e.g. 1.0) and I want to achieve this:

When I do MessageBox.Show(GetVersion()) to display 1.0 as a version.
When I do MessageBox.Show(GetVersion().Major()) to display 1
and when MessageBox.Show(GetVersion().Minor()) to display 0.

Parsing isn't issues here, but how to implement this GetVersion().SomeMethod().

I have tried this with the class with its methods:

public SomeClass GetVersion()
{
// Code
}


But this function required to return a value od type SomeClass and I need a string to return.

I don't know how to return a string with GetVersion() becouse GetVersion is type of SomeClass.

Or I can try by inheriting the Strings class and implement those two functions in that inherited class?
AnswerRe: Function method Pin
User 665820-Sep-06 2:55
User 665820-Sep-06 2:55 
QuestionRe: Function method Pin
Kasic Slobodan20-Sep-06 5:34
Kasic Slobodan20-Sep-06 5:34 
AnswerRe: Function method Pin
S. Senthil Kumar20-Sep-06 5:54
S. Senthil Kumar20-Sep-06 5:54 
GeneralRe: Function method Pin
Kasic Slobodan20-Sep-06 6:32
Kasic Slobodan20-Sep-06 6:32 
GeneralRe: Function method Pin
Kasic Slobodan20-Sep-06 6:42
Kasic Slobodan20-Sep-06 6:42 
QuestionExposing C# to COM / Inheritance of objects/interfaces Pin
Adam Clauss20-Sep-06 2:21
Adam Clauss20-Sep-06 2:21 
QuestionTrim textbox Pin
Yustme20-Sep-06 2:14
Yustme20-Sep-06 2:14 
QuestionRe: Trim textbox Pin
Sebastian Schneider20-Sep-06 2:29
Sebastian Schneider20-Sep-06 2:29 
AnswerRe: Trim textbox Pin
Yustme20-Sep-06 2:39
Yustme20-Sep-06 2:39 
GeneralRe: Trim textbox Pin
J4amieC20-Sep-06 2:54
J4amieC20-Sep-06 2:54 
GeneralRe: Trim textbox Pin
Yustme20-Sep-06 3:10
Yustme20-Sep-06 3:10 
GeneralRe: Trim textbox Pin
Sebastian Schneider20-Sep-06 3:21
Sebastian Schneider20-Sep-06 3:21 
GeneralRe: Trim textbox Pin
Yustme20-Sep-06 3:52
Yustme20-Sep-06 3:52 
QuestionMicrosecond timers/delays Pin
sjembek20-Sep-06 2:12
sjembek20-Sep-06 2:12 
AnswerRe: Microsecond timers/delays Pin
S. Senthil Kumar20-Sep-06 6:01
S. Senthil Kumar20-Sep-06 6:01 
GeneralRe: Microsecond timers/delays Pin
sjembek27-Sep-06 1:52
sjembek27-Sep-06 1:52 
QuestionHow to put a clickable button on a PropertyGrid ? Pin
sharongav20-Sep-06 1:35
sharongav20-Sep-06 1:35 

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.