CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2011
    Posts
    3

    usinf struct in other class

    I have this class
    using System;
    using System.Collections.Generic;
    namespace PerfectNetlist
    {
    public class InputfilesNVendors
    {

    public struct Connections1
    {
    string Netname;
    string FullNetline;
    public string MD5string;
    int ConnCnt;
    }
    public List<Connections1> MemoryBank1 = new List<Connections1>();
    public struct Connections2
    {
    string Netname;
    string FullNetline;
    string MD5string;
    int ConnCnt;
    }
    public List<Connections2> MemoryBank2 = new List<Connections2>();
    }
    }
    My question is how can I add data to to MemoryBank1 in BoardstationNets class

    namespace PerfectNetlist
    {
    public class BoardstationNets
    {
    public void ReadInBoardStationNetlistCmp(string Filename)
    {
    }
    }
    }

  2. #2
    Join Date
    Jun 2008
    Posts
    2,477

    Re: usinf struct in other class

    Please refine your question a bit further for us. What exactly is your problem? Is it how to parse data from the string, how to create an instance of Connections1, what exactly?

  3. #3
    Join Date
    Jun 2011
    Posts
    3

    Re: usinf struct in other class

    Hello ,

    I search on the internet and found the solution for what I did wrong.
    Thank you

    Mans Joling.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured