Click here to Skip to main content
15,922,574 members
Home / Discussions / C#
   

C#

 
GeneralRe: setting focus on masked textbox control added in datagridview Pin
yogesh_kumar_agarwal7-Apr-10 23:49
yogesh_kumar_agarwal7-Apr-10 23:49 
QuestionWhat OracleType to use for table of record output parameter Pin
whiteadi7-Apr-10 20:51
whiteadi7-Apr-10 20:51 
QuestionMessage Removed Pin
7-Apr-10 20:30
arun_pk7-Apr-10 20:30 
AnswerRe: xml reading Pin
SeMartens7-Apr-10 21:03
SeMartens7-Apr-10 21:03 
GeneralRe: xml reading Pin
arun_pk8-Apr-10 1:36
arun_pk8-Apr-10 1:36 
AnswerRe: xml reading Pin
Mirko19807-Apr-10 23:23
Mirko19807-Apr-10 23:23 
QuestionCSV files in C# Pin
i gr87-Apr-10 20:11
i gr87-Apr-10 20:11 
AnswerRe: CSV files in C# Pin
SeMartens7-Apr-10 21:05
SeMartens7-Apr-10 21:05 
AnswerRe: CSV files in C# Pin
yujianchi7-Apr-10 23:29
yujianchi7-Apr-10 23:29 
AnswerRe: CSV files in C# Pin
PIEBALDconsult8-Apr-10 3:40
mvePIEBALDconsult8-Apr-10 3:40 
QuestionHow to Find the Control of a window opened in c# Pin
svt gdwl7-Apr-10 18:22
svt gdwl7-Apr-10 18:22 
AnswerRe: How to Find the Control of a window opened in c# Pin
Ravi Bhavnani7-Apr-10 18:51
professionalRavi Bhavnani7-Apr-10 18:51 
QuestionPublic Enum in UserControl is crashing Visual Studio 2008 Pin
Corayzon7-Apr-10 15:08
Corayzon7-Apr-10 15:08 
AnswerRe: Public Enum in UserControl is crashing Visual Studio 2008 Pin
Dan Mos7-Apr-10 15:32
Dan Mos7-Apr-10 15:32 
GeneralRe: Public Enum in UserControl is crashing Visual Studio 2008 Pin
Corayzon7-Apr-10 15:43
Corayzon7-Apr-10 15:43 
GeneralRe: Public Enum in UserControl is crashing Visual Studio 2008 Pin
PIEBALDconsult7-Apr-10 17:21
mvePIEBALDconsult7-Apr-10 17:21 
GeneralRe: Public Enum in UserControl is crashing Visual Studio 2008 Pin
Dan Mos7-Apr-10 18:34
Dan Mos7-Apr-10 18:34 
AnswerRe: Public Enum in UserControl is crashing Visual Studio 2008 Pin
Not Active7-Apr-10 15:32
mentorNot Active7-Apr-10 15:32 
GeneralRe: Public Enum in UserControl is crashing Visual Studio 2008 Pin
Corayzon7-Apr-10 15:47
Corayzon7-Apr-10 15:47 
AnswerRe: Public Enum in UserControl is crashing Visual Studio 2008 Pin
DaveyM697-Apr-10 16:03
professionalDaveyM697-Apr-10 16:03 
GeneralRe: Public Enum in UserControl is crashing Visual Studio 2008 Pin
Corayzon7-Apr-10 16:30
Corayzon7-Apr-10 16:30 
GeneralRe: Public Enum in UserControl is crashing Visual Studio 2008 Pin
DaveyM697-Apr-10 16:34
professionalDaveyM697-Apr-10 16:34 
QuestionMessage Removed Pin
7-Apr-10 15:06
arucied7-Apr-10 15:06 
AnswerRe: How to jion points into a smoothing curve in WPF Pin
AspDotNetDev7-Apr-10 15:55
protectorAspDotNetDev7-Apr-10 15:55 
Questionaccess data base Pin
adrian5647-Apr-10 10:11
adrian5647-Apr-10 10:11 
Hello all,

I'm new to c# and I'm having trouble accessing a custom built .dll that is referenced from my Microsoft visual studio 2010 c# console project.
The CaraPartnersSdk.dll has 2 files from what I can see. which are:

using System;
using System.Collections.Generic;

namespace CaraPartnersSdk
{
    public class CarCollection
    {
        public CarCollection();

        public IEnumerable<Car> FindByName(string name);
        public Car GetByID(int id);
    }
}


I know this class some how will help me access the collection of cars. I need help parsing through this collection so I can retrieve an individual car. I have no idea how. Please, excuse my dumb question I know its pretty dumb but I have spent a long time trying to figure this out but I can not.

This is the other class "Car":
using System;
using System.Collections.Generic;

namespace CaraPartnersSdk
{
    public class Car
    {
        public Car();

        public string AlternateForm { get; }
        public Condition Condition { get; }
        public IEnumerable<Car> ConnectsToCar { get; }
        public bool HasBeenOpened { get; }
        public int ID { get; }
        public string Name { get; }
        public string OptionalAttributesXml { get; }
        public decimal Price { get; }
        public string Set { get; }
        public int Strength { get; }
    }
}


For now, I just want to print out all the car names from the collection of cars. I would just like to do it in a simple main class but I've had great difficulty in doing so. Any help is much appreciated. Thank you.

Best,
Adrian

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.