-
June 9th, 2011, 01:55 PM
#1
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)
{
}
}
}
-
June 9th, 2011, 03:06 PM
#2
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?
-
June 10th, 2011, 03:05 PM
#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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|