Click here to Skip to main content
15,914,111 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Help reading vector name from file Pin
Christian Graus5-Jul-07 2:34
protectorChristian Graus5-Jul-07 2:34 
GeneralRe: Help reading vector name from file Pin
led mike5-Jul-07 6:36
led mike5-Jul-07 6:36 
GeneralRe: Help reading vector name from file Pin
Christian Graus5-Jul-07 7:24
protectorChristian Graus5-Jul-07 7:24 
QuestionRead lines in a file Pin
Perspx4-Jul-07 10:46
Perspx4-Jul-07 10:46 
AnswerRe: Read lines in a file Pin
Christian Graus4-Jul-07 11:01
protectorChristian Graus4-Jul-07 11:01 
QuestionTrivial Property not working Pin
iddqd5153-Jul-07 11:13
iddqd5153-Jul-07 11:13 
QuestionRe: Trivial Property not working Pin
Mark Salsbery3-Jul-07 11:57
Mark Salsbery3-Jul-07 11:57 
AnswerRe: Trivial Property not working [modified] Pin
iddqd5153-Jul-07 12:13
iddqd5153-Jul-07 12:13 
Unless I'm horribly mistaken... Declaring the trivial property as follows:

property int Data;


should tell the compiler to generate something to the effect of:

property int Data
{
   int get()
   {
       return data;
   }
   void set(int d)
   {
       data = d;
   }
}


using a ' < backing_store > Data' variable behind the scenes.

Likewise for
property String^ S
That's the whole point of trivial properties as I understood it. If you're just making a 'trivial' getter and setter with no validation then the trivial property declaration should accomplish what you need and save you from typing a few lines of code. At least that's what I gathered from http://www.codeproject.com/managedcpp/CppCliProperties.asp?df=100&forumid=179807&exp=0&select=1107337 and many other articles/books.

And yes, that was a little redundant Unsure | :~ I've been staring at this property stuff for so long I'm making some dumb mistakes and triple checking everything before I post it.


-- modified at 18:18 Tuesday 3rd July, 2007
GeneralRe: Trivial Property not working Pin
Mark Salsbery3-Jul-07 12:36
Mark Salsbery3-Jul-07 12:36 
GeneralRe: Trivial Property not working Pin
iddqd5155-Jul-07 5:08
iddqd5155-Jul-07 5:08 
GeneralRe: Trivial Property not working Pin
Mark Salsbery5-Jul-07 6:07
Mark Salsbery5-Jul-07 6:07 
AnswerRe: Trivial Property not working Pin
iddqd5153-Jul-07 12:16
iddqd5153-Jul-07 12:16 
GeneralRe: Trivial Property not working Pin
Daniel Grunwald10-Jul-07 8:42
Daniel Grunwald10-Jul-07 8:42 
GeneralRe: Trivial Property not working Pin
iddqd51510-Jul-07 11:11
iddqd51510-Jul-07 11:11 
QuestionTo refresh Data in my DataGridView Pin
mikobi3-Jul-07 5:11
mikobi3-Jul-07 5:11 
AnswerRe: To refresh Data in my DataGridView Pin
Paul Conrad14-Jul-07 13:39
professionalPaul Conrad14-Jul-07 13:39 
Questiondynamic cast question Pin
Programm3r3-Jul-07 4:27
Programm3r3-Jul-07 4:27 
AnswerRe: dynamic cast question Pin
George L. Jackson3-Jul-07 10:53
George L. Jackson3-Jul-07 10:53 
GeneralRe: dynamic cast question Pin
Programm3r3-Jul-07 19:54
Programm3r3-Jul-07 19:54 
QuestionWinPcap C++ CLI Pin
abbd3-Jul-07 4:01
abbd3-Jul-07 4:01 
QuestionHelp Needed Fast Pin
A. K. S3-Jul-07 1:43
A. K. S3-Jul-07 1:43 
AnswerRe: Help Needed Fast Pin
Pete O'Hanlon3-Jul-07 1:53
mvePete O'Hanlon3-Jul-07 1:53 
Questionsrand in c or c++ doesn't really Generate Random Numbers ? Pin
snailflying2-Jul-07 21:45
snailflying2-Jul-07 21:45 
AnswerRe: srand in c or c++ doesn't really Generate Random Numbers ? Pin
Pete O'Hanlon3-Jul-07 1:57
mvePete O'Hanlon3-Jul-07 1:57 
GeneralRe: srand in c or c++ doesn't really Generate Random Numbers ? Pin
snailflying3-Jul-07 15:53
snailflying3-Jul-07 15:53 

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.