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

C#

 
AnswerRe: Reference as a 'pointer' to a value type Pin
Bert delaVega30-Jul-07 8:02
Bert delaVega30-Jul-07 8:02 
AnswerRe: Reference as a 'pointer' to a value type Pin
Luc Pattyn30-Jul-07 8:15
sitebuilderLuc Pattyn30-Jul-07 8:15 
GeneralRe: Reference as a 'pointer' to a value type [modified] Pin
kildareflare30-Jul-07 9:09
kildareflare30-Jul-07 9:09 
GeneralRe: Reference as a 'pointer' to a value type Pin
Luc Pattyn30-Jul-07 9:12
sitebuilderLuc Pattyn30-Jul-07 9:12 
GeneralRe: Reference as a 'pointer' to a value type Pin
kildareflare30-Jul-07 9:17
kildareflare30-Jul-07 9:17 
GeneralRe: Reference as a 'pointer' to a value type Pin
Cfer8330-Jul-07 9:37
Cfer8330-Jul-07 9:37 
QuestionCheckSignature of SignedXml returns false Pin
amit_k_gupta30-Jul-07 7:37
amit_k_gupta30-Jul-07 7:37 
QuestionXML serialization - Class and Property [modified] Pin
User 665830-Jul-07 7:25
User 665830-Jul-07 7:25 
Hi
I'm trying to serialize a class. Everything works fine, but I have problems serializing a property which returns one of my custom types. This is the class:

public MultiSampleType MultiSampleType
{
    get { return multisampleType; }
    set { multisampleType = value; }
}

public bool VSync
{
    get { return vsync; }
    set { vsync = value; }
}

public Resolution CurrentResolution
{
    get { return resolutions[currentResolution]; }
}


Both MultiSampleType and VSync get serialized, but CurrentResolution does not. I have marked my own class Resolution as [Serializable], but it doesn't work. This class also contains some public properties.

Any suggestions?


thanks in advance

/edit:

Looks like I also have to define a set accessor in my CurrentResolution. I actually don't want this. Is there a way to achieve this without it?

modified 12-Sep-18 21:01pm.

AnswerRe: XML serialization - Class and Property Pin
Martin#30-Jul-07 8:02
Martin#30-Jul-07 8:02 
GeneralRe: XML serialization - Class and Property Pin
User 665830-Jul-07 8:44
User 665830-Jul-07 8:44 
AnswerRe: XML serialization - Class and Property Pin
BoneSoft30-Jul-07 9:20
BoneSoft30-Jul-07 9:20 
QuestionForm Designer and Dispose() Pin
PhilDanger30-Jul-07 7:14
PhilDanger30-Jul-07 7:14 
QuestionHow Do I Define String Length? Pin
JamesBarnes30-Jul-07 7:05
JamesBarnes30-Jul-07 7:05 
AnswerRe: How Do I Define String Length? Pin
Judah Gabriel Himango30-Jul-07 7:09
sponsorJudah Gabriel Himango30-Jul-07 7:09 
GeneralRe: How Do I Define String Length? Pin
JamesBarnes30-Jul-07 7:18
JamesBarnes30-Jul-07 7:18 
GeneralRe: How Do I Define String Length? Pin
PIEBALDconsult30-Jul-07 10:49
mvePIEBALDconsult30-Jul-07 10:49 
Questionlayouting a hidden control Pin
burn_hh30-Jul-07 6:49
burn_hh30-Jul-07 6:49 
QuestionSQL Database Pin
ankit_mait30-Jul-07 6:40
ankit_mait30-Jul-07 6:40 
AnswerRe: SQL Database Pin
Paul Conrad30-Jul-07 6:43
professionalPaul Conrad30-Jul-07 6:43 
AnswerRe: SQL Database Pin
Cfer8330-Jul-07 9:44
Cfer8330-Jul-07 9:44 
GeneralRe: SQL Database Pin
ankit_mait30-Jul-07 20:07
ankit_mait30-Jul-07 20:07 
QuestionData-bound DataGrid: Custom sorting? Pin
Stanimir_Stoyanov30-Jul-07 6:33
Stanimir_Stoyanov30-Jul-07 6:33 
QuestionMy variables content appear in hexadecimal Pin
gapfulgence30-Jul-07 5:47
gapfulgence30-Jul-07 5:47 
AnswerRe: My variables content appear in hexadecimal Pin
Bert delaVega30-Jul-07 5:54
Bert delaVega30-Jul-07 5:54 
QuestionRe: My variables content appear in hexadecimal Pin
gapfulgence30-Jul-07 6:02
gapfulgence30-Jul-07 6:02 

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.