NameValuList

NameValuList

Old forum URL: forums.lhotka.net/forums/t/702.aspx


yh_ink posted on Friday, July 21, 2006

I was reading through the book and i dont understand what the code below is doing.could anyone please explain this.This is in the constructor region

#region Constructors

private NameList()

 {

 }

 private NameList(System.Runtime.Serialization.SerializationInfo info,System.Runtime.Serialization.StreamingContext context):

base(info,context)

{}

#endregion

 

What is it for could anyone explain????Do we have to use it for the class to work???

Michael Hildner replied on Sunday, July 23, 2006

yh_ink,

What version of CSLA are you using? I don't see this in the 2.0 book.

Mike

msk replied on Monday, July 24, 2006

It's a constructor needed by ISerializable.  I think this is because NamedValueList doesn't have the same inheritance hierarchy as other Csla classes.  

Copyright (c) Marimer LLC