Click here to Skip to main content
15,908,112 members
Home / Discussions / C#
   

C#

 
GeneralRe: special characters are coming in XML output Pin
saymajum14-Jun-07 19:24
saymajum14-Jun-07 19:24 
QuestionA qustion on Dll Call Pin
Xiaoming Qian14-Jun-07 15:16
Xiaoming Qian14-Jun-07 15:16 
AnswerRe: A qustion on Dll Call Pin
Tarakeshwar Reddy14-Jun-07 17:03
professionalTarakeshwar Reddy14-Jun-07 17:03 
GeneralRe: A qustion on Dll Call Pin
Xiaoming Qian14-Jun-07 20:41
Xiaoming Qian14-Jun-07 20:41 
Questionhow to put a Button Image into an array? Pin
Khoramdin14-Jun-07 14:38
Khoramdin14-Jun-07 14:38 
AnswerRe: how to put a Button Image into an array? Pin
alexey N14-Jun-07 18:44
alexey N14-Jun-07 18:44 
QuestionConvert Large Icons into Small???? Pin
classNoob14-Jun-07 13:29
classNoob14-Jun-07 13:29 
QuestionUsing your own classes in methods. Pin
jblouir14-Jun-07 12:32
jblouir14-Jun-07 12:32 
I am pretty sure I have some sort of syntax problem here but I can't get my head around it, dont see anything wrong.

I have made a class called cRoom, I create several room objects from this and shove them in an ArrayList.

class cRoom
{
//variables left out for better viewing

public cRoom(//insert loads of strings and ints here)
{
}

// All the public get/sets go here, again left out for better viewing.
}

//at some point in my Main() program ill call a method called North
//rActive is a cRoom object, arrRoomList is an array of cRooms

rActive = North(rActive,arrRoomList)

// The method for North

public static cRoom North(cRoom activeRoom, ArrayList roomList)
{
if (activeRoom.NORTH != 0)
{
foreach (cRoom room in roomList)
{
if (room.RID == activeRoom.NORTH)
{
return room;
}
}
}
else
{
Console.WriteLine("I can't go that way.");
return activeRoom;
}
}

Anyway when the code is compiled I get two errors.

Inconsistent accesibility: return type ....cRoom is less accessible than method.....North
Inconsistent accesibility: parameter type...cRoom is less accessible than method....North

Thanks in advance. =)
AnswerRe: Using your own classes in methods. Pin
Guffa14-Jun-07 12:55
Guffa14-Jun-07 12:55 
GeneralRe: Using your own classes in methods. Pin
jblouir14-Jun-07 13:05
jblouir14-Jun-07 13:05 
GeneralRe: Using your own classes in methods. Pin
jblouir14-Jun-07 13:26
jblouir14-Jun-07 13:26 
GeneralWell... Pin
jblouir14-Jun-07 13:31
jblouir14-Jun-07 13:31 
GeneralRe: Well... Pin
jblouir14-Jun-07 13:37
jblouir14-Jun-07 13:37 
GeneralRe: Well... Pin
jblouir14-Jun-07 13:47
jblouir14-Jun-07 13:47 
GeneralRe: Well... Pin
Christian Graus14-Jun-07 13:52
protectorChristian Graus14-Jun-07 13:52 
AnswerRe: Using your own classes in methods. Pin
Guffa14-Jun-07 13:30
Guffa14-Jun-07 13:30 
GeneralRe: Using your own classes in methods. Pin
Rudolf Jan15-Jun-07 0:27
Rudolf Jan15-Jun-07 0:27 
Questionmulti list problem [modified] Pin
bolhassanim@bellsouth.net14-Jun-07 10:34
professionalbolhassanim@bellsouth.net14-Jun-07 10:34 
AnswerRe: multi list problem Pin
Christian Graus14-Jun-07 11:47
protectorChristian Graus14-Jun-07 11:47 
GeneralRe: multi list problem Pin
bolhassanim@bellsouth.net14-Jun-07 18:19
professionalbolhassanim@bellsouth.net14-Jun-07 18:19 
QuestionDelimiters - Is there a simple way Pin
haz1314-Jun-07 10:19
haz1314-Jun-07 10:19 
AnswerRe: Delimiters - Is there a simple way Pin
Paul Conrad14-Jun-07 10:31
professionalPaul Conrad14-Jun-07 10:31 
GeneralRe: Delimiters - Is there a simple way Pin
haz1314-Jun-07 10:39
haz1314-Jun-07 10:39 
GeneralRe: Delimiters - Is there a simple way Pin
Giorgi Dalakishvili14-Jun-07 10:44
mentorGiorgi Dalakishvili14-Jun-07 10:44 
GeneralRe: Delimiters - Is there a simple way Pin
Paul Conrad14-Jun-07 10:52
professionalPaul Conrad14-Jun-07 10:52 

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.