Click here to Skip to main content
15,921,174 members
Home / Discussions / C#
   

C#

 
Questionhow to create trial version from my app ? Pin
hdv21212-Oct-06 10:46
hdv21212-Oct-06 10:46 
AnswerRe: how to create trial version from my app ? Pin
AB777112-Oct-06 20:44
AB777112-Oct-06 20:44 
GeneralRe: how to create trial version from my app ? Pin
mav.northwind13-Oct-06 22:32
mav.northwind13-Oct-06 22:32 
AnswerRe: how to create trial version from my app ? Pin
jmcc2k24-Nov-10 18:11
jmcc2k24-Nov-10 18:11 
QuestionLoading .cs file from FileSystem as Object? Pin
robert11012-Oct-06 10:15
robert11012-Oct-06 10:15 
AnswerRe: Loading .cs file from FileSystem as Object? Pin
Stefan Troschuetz12-Oct-06 21:23
Stefan Troschuetz12-Oct-06 21:23 
AnswerRe: Loading .cs file from FileSystem as Object? Pin
Jonathan van de Veen12-Oct-06 21:51
Jonathan van de Veen12-Oct-06 21:51 
GeneralRe: Loading .cs file from FileSystem as Object? Pin
robert11015-Oct-06 6:39
robert11015-Oct-06 6:39 
QuestionPage_Load fires twice [modified] Pin
bins8812-Oct-06 8:47
bins8812-Oct-06 8:47 
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 

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.