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

C#

 
QuestionSecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority Pin
Le centriste30-Mar-11 4:04
Le centriste30-Mar-11 4:04 
AnswerRe: SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority Pin
Pete O'Hanlon30-Mar-11 4:40
mvePete O'Hanlon30-Mar-11 4:40 
GeneralRe: SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority Pin
Le centriste30-Mar-11 4:56
Le centriste30-Mar-11 4:56 
GeneralRe: SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority Pin
Pete O'Hanlon30-Mar-11 5:12
mvePete O'Hanlon30-Mar-11 5:12 
QuestionRe: SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority Pin
Le centriste30-Mar-11 5:25
Le centriste30-Mar-11 5:25 
AnswerRe: SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority Pin
Pete O'Hanlon30-Mar-11 6:00
mvePete O'Hanlon30-Mar-11 6:00 
JokeRe: SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority Pin
Soulus8330-Mar-11 13:22
Soulus8330-Mar-11 13:22 
QuestionHow to write a class, where one of its attributes is an Array? Pin
nstk30-Mar-11 2:23
nstk30-Mar-11 2:23 
Hi there,

I am willing to declare a class, where one of its attributes has to be an Array of integers.

1st question:
How should I write the set and get methods, cause the following is not working.
class Testclass
    {
        ........

        private int[] _number;
        public int number
        {
            get { return _number[]; }
            set { _number[] = value; }
        }
        
        ........
     }


2nd question:
Not knowing how to deal with the above methods ani in order to advance into coding I declared the attribute as public

public int[] number;

Although I declare a new Object in the Form class (it should be a windows App)
Testclass Myclass = new Testclass();
the programme crashes
Myclass.number[i] = i + 2;
saying that System.NullReferenceException was unhandled and asking me to create a new object instance for Myclass.number[i]

A bit confusing for me...
AnswerRe: How to write a class, where one of its attributes is an Array? PinPopular
Pete O'Hanlon30-Mar-11 2:30
mvePete O'Hanlon30-Mar-11 2:30 
GeneralRe: How to write a class, where one of its attributes is an Array? Pin
nstk3-Apr-11 23:02
nstk3-Apr-11 23:02 
AnswerRe: How to write a class, where one of its attributes is an Array? Pin
David198730-Mar-11 2:46
David198730-Mar-11 2:46 
AnswerRe: How to write a class, where one of its attributes is an Array? Pin
#realJSOP30-Mar-11 7:16
mve#realJSOP30-Mar-11 7:16 
AnswerRe: How to write a class, where one of its attributes is an Array? Pin
davidnz30-Mar-11 10:21
davidnz30-Mar-11 10:21 
GeneralRe: How to write a class, where one of its attributes is an Array? Pin
nstk2-Apr-11 4:40
nstk2-Apr-11 4:40 
QuestionHttpWebRequest load image from rss with UI freezing (windows phone) Pin
peter_piper30-Mar-11 2:09
peter_piper30-Mar-11 2:09 
AnswerRe: HttpWebRequest load image from rss with UI freezing (windows phone) Pin
Luc Pattyn30-Mar-11 3:18
sitebuilderLuc Pattyn30-Mar-11 3:18 
GeneralRe: HttpWebRequest load image from rss with UI freezing (windows phone) Pin
peter_piper30-Mar-11 3:42
peter_piper30-Mar-11 3:42 
GeneralRe: HttpWebRequest load image from rss with UI freezing (windows phone) Pin
Luc Pattyn30-Mar-11 3:54
sitebuilderLuc Pattyn30-Mar-11 3:54 
GeneralRe: HttpWebRequest load image from rss with UI freezing (windows phone) Pin
peter_piper4-Apr-11 3:03
peter_piper4-Apr-11 3:03 
AnswerRe: HttpWebRequest load image from rss with UI freezing (windows phone) Pin
Luc Pattyn4-Apr-11 4:57
sitebuilderLuc Pattyn4-Apr-11 4:57 
GeneralRe: HttpWebRequest load image from rss with UI freezing (windows phone) Pin
peter_piper12-Apr-11 4:12
peter_piper12-Apr-11 4:12 
Questionsort generic list collection Pin
arkiboys29-Mar-11 23:41
arkiboys29-Mar-11 23:41 
AnswerRe: sort generic list collection Pin
Pete O'Hanlon29-Mar-11 23:56
mvePete O'Hanlon29-Mar-11 23:56 
GeneralRe: sort generic list collection Pin
arkiboys30-Mar-11 0:18
arkiboys30-Mar-11 0:18 
GeneralRe: sort generic list collection Pin
Shameel30-Mar-11 0:28
professionalShameel30-Mar-11 0:28 

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.