Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

adrian564

@adrian564
About
Posts
9
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • access data base
    A adrian564

    I did not mean for it to offend anyone, I'm just frustrated with this problem. My only concern was he could have wasted his time trying to help instead of condemning me by discouraging future viewers from helping me solve my problem. But, you are probably right, I am the new guy and I will review the guidelines and etiquette here. Obviously, I am doing something wrong. Best, Adrian

    C# csharp visual-studio json help question

  • access data base
    A adrian564

    Um, no. I'm new to the forum and new to c#. I do not believe its a totally unrelated subject line. If it is unrelated please forgive me almighty guardian watcher of codeproject.com. I just need some direction, if your not willing to help then do not attempt to convict me by saying I'm posting unrelated subject lines. Maybe, next time you can say something as "how is this related to a database?" I don't know, I'm just saying. That is very rude. Best, Adrian

    C# csharp visual-studio json help question

  • access data base
    A adrian564

    I never got an answer.

    C# csharp visual-studio json help question

  • access data base
    A adrian564

    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

    C# csharp visual-studio json help question

  • iteration
    A adrian564

    Anyone? any suggestions? Maybe a helpful book or website? Thanks.

    C# csharp visual-studio c++ data-structures help

  • iteration
    A adrian564

    Hello, I'm still really confused, so I tried this <pre> IEnumerable<string> carnames = from cars in Car select cars.name; </pre> The error I get is error CS1936: Could not find an implementation of the query pattern for source type 'CaraPartnersSdk.Robot'. 'Select' not found. I'm real confused I just want to print out the string name of the car. Please help. Best, Adrian

    C# csharp visual-studio c++ data-structures help

  • iteration
    A adrian564

    Hello, I'm still really confused, so I tried this

    IEnumerable<string> carnames = from cars in Car
    select cars.name;

    The error I get is error CS1936: Could not find an implementation of the query pattern for source type 'CaraPartnersSdk.Robot'. 'Select' not found. I'm real confused I just want to print out the string name of the car. Please help. Best, Adrian

    C# csharp visual-studio c++ data-structures help

  • iteration
    A adrian564

    Hello all, I would appreciate any help that can be given. I'm new to c# and mostly develop in c++. I'm using Microsoft Visual Studio 2010 as my IDE. My question is I'd like to ouput cars from a car collection. I'm using a 3rd party DLL library. As far as I know the dll has 2 classes. They are CarCollection and Car. CarCollection has the following functions: using System; using System.Collections.Generic; namespace CaraPartnersSdk { public class CarCollection { public CarCollection(); public IEnumerable<Car> FindByName(string name); public Car GetByID(int id); } } Car.cs: using System; using System.Collections.Generic; namespace CaraPartnersSdk { public class Car { public Car(); public string AlternateForm { get; } public Condition Condition { get; } public IEnumerable<Car> ConnectsToCars { 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; } } } All I'm trying to do is output each Car's name and ID which is in the dll. For now, I'm using a simple main class. I have no idea how to iterate through the CarCollection since it's not an array or actual collection. I'm doing CarCollection aCollection = new CarCollection(); When I use aCollection.FindByName() I get a message which does not help. After that I'm stumped. I know I have to use public IEnumerable<Car> FindByName(string name); from the CarCollection class but I have no idea how. I wish they passed the collection as an array because then I can do a simple for loop like for(int i = 0; i { collection(i).getName(); } something like that, but I guess thats not the case. Please I would appreciate any help. Thanks. -Adrian

    C# csharp visual-studio c++ data-structures help

  • iteration
    A adrian564

    Hello all, I would appreciate any help that can be given. I'm new to c# and mostly develop in c++. I'm using Microsoft Visual Studio 2010 as my IDE. My question is I'd like to ouput cars from a car collection. I'm using a 3rd party DLL library. As far as I know the dll has 2 classes. They are CarCollection and Car. CarCollection has the following functions:

    using System;
    using System.Collections.Generic;

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

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

    }

    Car.cs:

    using System;
    using System.Collections.Generic;

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

        public string AlternateForm { get; }
        public Condition Condition { get; }
        public IEnumerable<Car> ConnectsToCars { 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; }
    }
    

    }

    All I'm trying to do is output each Car's name and ID which is in the dll. For now, I'm using a simple main class. I have no idea how to iterate through the CarCollection since it's not an array or actual collection. I'm doing CarCollection aCollection = new CarCollection(); When I use aCollection.FindByName() I get a message which does not help. After that I'm stumped. I know I have to use public IEnumerable<Car> FindByName(string name); from the CarCollection class but I have no idea how. I wish they passed the collection as an array because then I can do a simple for loop like for(int i = 0; i

    C# csharp visual-studio c++ data-structures help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups