Click here to Skip to main content
15,897,704 members
Home / Discussions / C#
   

C#

 
GeneralRegex and accents Pin
Rome Singh11-Jan-03 9:52
Rome Singh11-Jan-03 9:52 
GeneralRe: Regex and accents Pin
Nathan Blomquist11-Jan-03 10:08
Nathan Blomquist11-Jan-03 10:08 
GeneralRe: Regex and accents Pin
Daniel Turini11-Jan-03 10:24
Daniel Turini11-Jan-03 10:24 
GeneralRe: Regex and accents Pin
Rome Singh11-Jan-03 10:35
Rome Singh11-Jan-03 10:35 
GeneralRe: Regex and accents Pin
Nathan Blomquist11-Jan-03 11:27
Nathan Blomquist11-Jan-03 11:27 
GeneralRe: Regex and accents Pin
Rome Singh11-Jan-03 14:05
Rome Singh11-Jan-03 14:05 
QuestionIdeas for a Server Monitor ?? Pin
Dato11-Jan-03 7:29
Dato11-Jan-03 7:29 
GeneralRemoting Collections Pin
billb211210-Jan-03 18:38
billb211210-Jan-03 18:38 
I have a custom collection that I built that contains strings, doubles and datetimes. When I try and retrieve that collection from the server I get the following error:
"The type BarCollection in Assembly, Version=1.0.1106.204, Culture=neutral, PublicKeyToken=null is not marked as serializable."

I've derived from CollectionBase and implemented my Add and an indexer (strongly typed). The collection contains a structure that contains the aforementioned strings, doubles and datetimes. I've declared it as [Serializable].

<br />
[Serializable]<br />
public class BarData<br />
{<br />
  public DateTime BarDateTime;<br />
  public string BarName;<br />
  public double d1;<br />
  public double d2;<br />
  public double d3;<br />
}<br />


and here's a snippet of my collection

<br />
public class BarCollection : CollectionBase<br />
{<br />
  public void Add(BarData bar)<br />
  {<br />
    List.Add(bar);<br />
  }<br />
<br />
  public BarData this[int Index]<br />
  {<br />
    get<br />
    {<br />
      return (BarData)List[Index];<br />
    }<br />
    set<br />
    {<br />
      List[Index] = value;<br />
    }<br />
  }<br />
}<br />
<br />
...<br />


I assume the problem is with the non string members, but what else do I need to do to get this sucker over the wire?

Thanks.

Give me one more medicated peaceful moment
GeneralRe: Remoting Collections Pin
leppie10-Jan-03 23:19
leppie10-Jan-03 23:19 
GeneralRe: Remoting Collections Pin
billb211211-Jan-03 5:02
billb211211-Jan-03 5:02 
GeneralRe: Remoting Collections Pin
leppie11-Jan-03 5:11
leppie11-Jan-03 5:11 
GeneralRe: Remoting Collections Pin
billb211211-Jan-03 5:49
billb211211-Jan-03 5:49 
Questiontrack bar int too double ? Pin
jtmtv1810-Jan-03 13:22
jtmtv1810-Jan-03 13:22 
AnswerRe: track bar int too double ? Pin
David Stone10-Jan-03 13:39
sitebuilderDavid Stone10-Jan-03 13:39 
GeneralRe: track bar int too double ? Pin
jtmtv1810-Jan-03 14:10
jtmtv1810-Jan-03 14:10 
GeneralRe: track bar int too double ? Pin
David Stone11-Jan-03 5:57
sitebuilderDavid Stone11-Jan-03 5:57 
GeneralRe: track bar int too double ? Pin
stephen woolhead10-Jan-03 15:32
stephen woolhead10-Jan-03 15:32 
GeneralRe: track bar int too double ? Pin
David Stone11-Jan-03 5:58
sitebuilderDavid Stone11-Jan-03 5:58 
GeneralAborting updates in a DataTable Pin
stephen woolhead10-Jan-03 12:43
stephen woolhead10-Jan-03 12:43 
GeneralRe: Aborting updates in a DataTable Pin
jtmtv1810-Jan-03 13:28
jtmtv1810-Jan-03 13:28 
GeneralRe: Aborting updates in a DataTable Pin
stephen woolhead10-Jan-03 13:57
stephen woolhead10-Jan-03 13:57 
GeneralRe: Aborting updates in a DataTable Pin
jtmtv1810-Jan-03 14:19
jtmtv1810-Jan-03 14:19 
GeneralRe: Aborting updates in a DataTable Pin
stephen woolhead10-Jan-03 15:42
stephen woolhead10-Jan-03 15:42 
GeneralVersion number in deployment app Pin
Bog10-Jan-03 12:24
Bog10-Jan-03 12:24 
QuestionMDI apps fullscreen without border? Pin
capiscan10-Jan-03 11:53
susscapiscan10-Jan-03 11: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.