Click here to Skip to main content
15,895,667 members
Home / Discussions / C#
   

C#

 
AnswerRe: Page_Load fires twice Pin
Andrew Rissing12-Oct-06 10:01
Andrew Rissing12-Oct-06 10:01 
QuestionService Problem - Starting a different process Pin
matthias s.12-Oct-06 8:01
matthias s.12-Oct-06 8:01 
AnswerRe: Service Problem - Starting a different process Pin
Andrew Rissing12-Oct-06 8:21
Andrew Rissing12-Oct-06 8:21 
GeneralRe: Service Problem - Starting a different process Pin
matthias s.12-Oct-06 9:14
matthias s.12-Oct-06 9:14 
GeneralRe: Service Problem - Starting a different process Pin
Andrew Rissing12-Oct-06 9:58
Andrew Rissing12-Oct-06 9:58 
Questiondropdownlist1.selectedvalue Pin
Ram Kiran12-Oct-06 7:57
Ram Kiran12-Oct-06 7:57 
AnswerRe: dropdownlist1.selectedvalue Pin
mnvkng7612-Oct-06 18:23
mnvkng7612-Oct-06 18:23 
QuestionHow to use class property Pin
robert11012-Oct-06 7:29
robert11012-Oct-06 7:29 
Can someone please explain why one is correct/better or incorrect/worse?

public class Gatorade
{
    public Gatorade(){}
    private ArrayList _Ingrediants = null;
    public ArrayList Ingrediants
    {
	get 
        { 
            if (_Ingrediants == null)
            {
                _Ingrediants = new ArrayList();
            }
            return _Ingrediants;
        }
	set { _Ingrediants = value;}
    }
    
    public void IngrediantsList()
    {
        /* Should I Do This */
        _Ingrediants = new ArrayList();
        this._Ingrediants.Add("Water");
        this._Ingrediants.Add("Sucrose Syrup");

        /* Or This: */
        this.Ingrediants.Add("Water");
        this.Ingrediants.Add("Sucrose Syrup");
    }
}

If I do this.Ingrediants.Add("Water"); then I dont have to manually instantiate _Ingrediants but this way I am accessing the public property. Please advice. Thanks.
AnswerRe: How to use class property Pin
led mike12-Oct-06 7:36
led mike12-Oct-06 7:36 
AnswerRe: How to use class property Pin
Sreenath Madyastha12-Oct-06 7:40
Sreenath Madyastha12-Oct-06 7:40 
QuestionHow can i create Font property for a composite control similar to the default one? Pin
Lior S12-Oct-06 7:27
Lior S12-Oct-06 7:27 
AnswerRe: How can i create Font property for a composite control similar to the default one? Pin
Martin#12-Oct-06 20:26
Martin#12-Oct-06 20:26 
Questionnewbie: sort values in a text.txt and display by name? Pin
hristo197712-Oct-06 7:12
hristo197712-Oct-06 7:12 
AnswerRe: newbie: sort values in a text.txt and display by name? Pin
User 665812-Oct-06 7:25
User 665812-Oct-06 7:25 
GeneralRe: newbie: sort values in a text.txt and display by name? Pin
hristo197712-Oct-06 9:00
hristo197712-Oct-06 9:00 
QuestionConverting semi-structured htm data to xml Pin
RichardInToronto12-Oct-06 7:06
RichardInToronto12-Oct-06 7:06 
AnswerRe: Converting semi-structured htm data to xml Pin
led mike12-Oct-06 7:39
led mike12-Oct-06 7:39 
GeneralRe: Converting semi-structured htm data to xml Pin
RichardInToronto12-Oct-06 16:57
RichardInToronto12-Oct-06 16:57 
AnswerRe: Converting semi-structured htm data to xml Pin
Sreenath Madyastha12-Oct-06 7:46
Sreenath Madyastha12-Oct-06 7:46 
GeneralRe: Converting semi-structured htm data to xml Pin
RichardInToronto12-Oct-06 16:59
RichardInToronto12-Oct-06 16:59 
QuestionRun EXE from Windows service Pin
kalyan.n@dsolusys.com12-Oct-06 6:54
kalyan.n@dsolusys.com12-Oct-06 6:54 
AnswerRe: Run EXE from Windows service Pin
perlmunger12-Oct-06 7:33
perlmunger12-Oct-06 7:33 
QuestionWhere does my Console output go? Pin
snorkie12-Oct-06 6:48
professionalsnorkie12-Oct-06 6:48 
AnswerRe: Where does my Console output go? Pin
User 665812-Oct-06 6:57
User 665812-Oct-06 6:57 
GeneralRe: Where does my Console output go? Pin
snorkie12-Oct-06 10:56
professionalsnorkie12-Oct-06 10:56 

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.