Structs in C# (type could not be found) -


I'm new to C #, so please forgive this noobish question. I'm playing with a simple XNA game demo. I have a straight that I want to be available for many classes. It is defined as follows:

PhotonType.cs

  using the system; Namespace Shippo {public essay} photon type {public color tint; }  

In another file in the same folder / name space, ShipCase , I refer to this structure:

 < Code> Nom place Shields {Public Class Pope {// ... Private Photon Type Phphototype; // ... ... public ship (float x, float y, float angle, boolean exactsound, photon type phonotype) {// ...}}  

This gives me both references On Compilation Errors For PhotonType

Error 1 type or namespace name 'Photon type' could not be found (Do you have access instructions or an assembly reference unavailable?)

What do I do here Am doing wrong Apart from this, the C # documentation says that

This is an error in starting an example field in a straight.

But if I want to provide default value?

I am using Visual Studio Ultimate 2010 beta.

Is there 2 files in the same project? If your namespace is divided between 2 projects, then you need to refer to the project with photonotype in the second project.

I am the matter, I ask questions on the design, generally we do not even split the namespace in more than one assembly.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -