Click here to Skip to main content
15,905,915 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do I get this page? Pin
gemeite6-Oct-10 15:40
gemeite6-Oct-10 15:40 
QuestionHow to implement .Empty in your own class? Pin
FruitBatInShades4-Oct-10 5:55
FruitBatInShades4-Oct-10 5:55 
AnswerRe: How to implement .Empty in your own class? Pin
Ian Shlasko4-Oct-10 6:06
Ian Shlasko4-Oct-10 6:06 
GeneralRe: How to implement .Empty in your own class? Pin
FruitBatInShades4-Oct-10 6:21
FruitBatInShades4-Oct-10 6:21 
GeneralRe: How to implement .Empty in your own class? Pin
Ian Shlasko4-Oct-10 6:24
Ian Shlasko4-Oct-10 6:24 
GeneralRe: How to implement .Empty in your own class? Pin
DaveyM694-Oct-10 12:31
professionalDaveyM694-Oct-10 12:31 
GeneralRe: How to implement .Empty in your own class? Pin
phil.o4-Oct-10 20:59
professionalphil.o4-Oct-10 20:59 
AnswerRe: How to implement .Empty in your own class? Pin
Luc Pattyn4-Oct-10 6:06
sitebuilderLuc Pattyn4-Oct-10 6:06 
string.Empty is a static getter property. You can add such static getter to any class you create, and have it return whatever you want. Like so:

public class MySillyExample {
    public static string Empty {
        get {
            return "this is not an empty string";
        }
    }
}


It is unrelated to a current object ("this"), and quite different from a non-static Clear() method.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


AnswerRe: How to implement .Empty in your own class? Pin
DaveyM694-Oct-10 6:52
professionalDaveyM694-Oct-10 6:52 
GeneralRe: How to implement .Empty in your own class? Pin
Luc Pattyn4-Oct-10 8:35
sitebuilderLuc Pattyn4-Oct-10 8:35 
GeneralRe: How to implement .Empty in your own class? Pin
DaveyM694-Oct-10 11:43
professionalDaveyM694-Oct-10 11:43 
QuestionI would like help setting up a ping utility Pin
turbosupramk34-Oct-10 5:36
turbosupramk34-Oct-10 5:36 
AnswerRe: I would like help setting up a ping utility Pin
Luc Pattyn4-Oct-10 5:42
sitebuilderLuc Pattyn4-Oct-10 5:42 
GeneralRe: I would like help setting up a ping utility Pin
turbosupramk34-Oct-10 5:46
turbosupramk34-Oct-10 5:46 
AnswerRe: I would like help setting up a ping utility Pin
Luc Pattyn4-Oct-10 5:53
sitebuilderLuc Pattyn4-Oct-10 5:53 
GeneralRe: I would like help setting up a ping utility Pin
turbosupramk34-Oct-10 6:08
turbosupramk34-Oct-10 6:08 
GeneralRe: I would like help setting up a ping utility Pin
Dave Kreskowiak4-Oct-10 6:26
mveDave Kreskowiak4-Oct-10 6:26 
AnswerRe: I would like help setting up a ping utility Pin
Luc Pattyn4-Oct-10 6:28
sitebuilderLuc Pattyn4-Oct-10 6:28 
GeneralRe: I would like help setting up a ping utility Pin
turbosupramk34-Oct-10 6:40
turbosupramk34-Oct-10 6:40 
GeneralRe: I would like help setting up a ping utility Pin
Luc Pattyn4-Oct-10 6:47
sitebuilderLuc Pattyn4-Oct-10 6:47 
Questioncreating a master page in Asp Pin
KAMAL SHYAM4-Oct-10 1:23
KAMAL SHYAM4-Oct-10 1:23 
AnswerRe: creating a master page in Asp Pin
#realJSOP4-Oct-10 2:02
professional#realJSOP4-Oct-10 2:02 
GeneralRe: creating a master page in Asp Pin
Vimalsoft(Pty) Ltd4-Oct-10 7:47
professionalVimalsoft(Pty) Ltd4-Oct-10 7:47 
QuestionUI Automation Pin
arun_pk4-Oct-10 0:48
arun_pk4-Oct-10 0:48 
AnswerRe: UI Automation Pin
Dave Kreskowiak4-Oct-10 2:15
mveDave Kreskowiak4-Oct-10 2:15 

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.