Click here to Skip to main content
       

C#

 
AnswerRe: KeyValuePair from reference dll PinmemberSuper Lloyd3-Jan-13 17:51 
GeneralRe: KeyValuePair from reference dll PinmemberIsaksson3-Jan-13 21:14 
GeneralRe: KeyValuePair from reference dll PinmemberSuper Lloyd3-Jan-13 22:48 
GeneralRe: KeyValuePair from reference dll PinmemberIsaksson4-Jan-13 0:41 
Questionhow to connect and disconnect to internet by Exist connection Pinmemberapadana_19892-Jan-13 17:44 
QuestionRe: how to connect and disconnect to internet by Exist connection PinmvpRichard MacCutchan2-Jan-13 22:15 
AnswerRe: how to connect and disconnect to internet by Exist connection Pinmemberjschell3-Jan-13 8:11 
QuestionHow to create a colletion of properties in a C# class Pinmemberbnath0012-Jan-13 12:59 
Hello folks,
 
Happy New Year!!!
 
I have a class that has couple of properties.
 
Can I have a property in that class that can be a collection. Like say the MarketData. can I have a property say "FailedCurves" . It is a string property. But only thing is, this property is an ArrayList or Dictionary object that can have multiple string items in it.
 
How can I do that in C#? Am I thinking correct?
 
Thanks much
public class MarketData
    {
        #region "Private Data Members"
        private int _countAdvanceCurve;       
        private int _countAdvancesSBCAgencyCurve;
        private int _countAdvancesSBCAAACurve;
        private int _countFhlbsfTreasuryCurve;
        private int _countDNCOCurve;  
        #endregion "Private Data Members"
        #region "Public Data Members"
        public int CountAdvanceCurve
        {
            get { return _countAdvanceCurve; }
            set { _countAdvanceCurve = value; }
        }
}

AnswerRe: How to create a colletion of properties in a C# class PinmemberPIEBALDconsult2-Jan-13 13:34 
AnswerRe: How to create a colletion of properties in a C# class PinmvpAbhinav S2-Jan-13 15:42 
AnswerRe: How to create a colletion of properties in a C# class PinmvpOriginalGriff2-Jan-13 21:16 
GeneralRe: How to create a colletion of properties in a C# class Pinmemberbnath0013-Jan-13 5:59 
GeneralRe: How to create a colletion of properties in a C# class PinmvpOriginalGriff3-Jan-13 8:24 
GeneralIf I use Dictionary, I am not able to serialize it Pinmemberbnath0013-Jan-13 9:08 
GeneralRe: If I use Dictionary, I am not able to serialize it PinmvpOriginalGriff3-Jan-13 9:50 
GeneralRe: If I use Dictionary, I am not able to serialize it Pinmemberbnath0013-Jan-13 10:44 
QuestionCA2214 Do not call overridable methods in constructors PinmentorDaveyM692-Jan-13 12:35 
GeneralRe: CA2214 Do not call overridable methods in constructors PinmemberPIEBALDconsult2-Jan-13 13:38 
AnswerRe: CA2214 Do not call overridable methods in constructors PinmemberAlan N2-Jan-13 14:28 
GeneralRe: CA2214 Do not call overridable methods in constructors PinmentorDaveyM692-Jan-13 22:33 
GeneralRe: CA2214 Do not call overridable methods in constructors PinprotectorPete O'Hanlon2-Jan-13 22:53 
GeneralRe: CA2214 Do not call overridable methods in constructors PinmemberBobJanova3-Jan-13 1:36 
GeneralRe: CA2214 Do not call overridable methods in constructors PinprotectorPete O'Hanlon3-Jan-13 1:42 
GeneralRe: CA2214 Do not call overridable methods in constructors PinmentorDaveyM693-Jan-13 3:22 
GeneralRe: CA2214 Do not call overridable methods in constructors PinmentorDaveyM693-Jan-13 12:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 17 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid