Click here to Skip to main content
15,891,316 members
Home / Discussions / C#
   

C#

 
GeneralRe: Switching between .net 1 and 2 ? Pin
Pete O'Hanlon8-Feb-07 10:32
mvePete O'Hanlon8-Feb-07 10:32 
GeneralRe: Switching between .net 1 and 2 ? Pin
Wayne Phipps8-Feb-07 11:06
Wayne Phipps8-Feb-07 11:06 
GeneralRe: Switching between .net 1 and 2 ? Pin
ednrgc9-Feb-07 5:06
ednrgc9-Feb-07 5:06 
Questionnew instance of draw class always creates new window... why? Pin
Ranger498-Feb-07 7:43
Ranger498-Feb-07 7:43 
AnswerRe: new instance of draw class always creates new window... why? Pin
Ravi Bhavnani8-Feb-07 7:58
professionalRavi Bhavnani8-Feb-07 7:58 
GeneralRe: new instance of draw class always creates new window... why? Pin
Ranger498-Feb-07 8:02
Ranger498-Feb-07 8:02 
GeneralRe: new instance of draw class always creates new window... why? Pin
Ravi Bhavnani8-Feb-07 8:05
professionalRavi Bhavnani8-Feb-07 8:05 
Questionsame error message again.. Pin
Ranger498-Feb-07 7:00
Ranger498-Feb-07 7:00 
Hello!
Again I am getting the error message "member names cannot be the same as their enclosing type"
I have a class Matrix which is public. And I am wondering if C# lets a class like Project return a Matrix as it is instanced.
Last time I had this problem it had to do with certain variables not being public. But in this example there are so few variables that I figure I got all my bases covered.
What did I overlook or forget to consider?
Ranger...

public class Project
{
// Blush | :O Project: member names cannot be the same as their enclosing type
public Matrix Project(double Rx, double Ry, double distance)
{
return new Matrix
(
Math.Cos(Ry),
0.0,
Math.Sin(Ry),
0.0,

Math.Sin(Ry) * Math.Cos(Rx),
Math.Cos(Rx),
-Math.Cos(Rx) * Math.Sin(Rx),
0.0,

0.0,
0.0,
0.0,
0.0,

(Math.Sin(Ry) * Math.Cos(Rx)) / distance,
-Math.Sin(Rx) / distance,
-(Math.Cos(Ry) * Math.Cos(Rx)) / distance,
1.0
);
}

Beginner
AnswerRe: same error message again.. Pin
Ravi Bhavnani8-Feb-07 7:41
professionalRavi Bhavnani8-Feb-07 7:41 
GeneralRe: same error message again.. Pin
Ranger498-Feb-07 7:46
Ranger498-Feb-07 7:46 
GeneralRe: same error message again.. Pin
Ravi Bhavnani8-Feb-07 7:54
professionalRavi Bhavnani8-Feb-07 7:54 
GeneralRe: same error message again.. Pin
Ranger498-Feb-07 7:58
Ranger498-Feb-07 7:58 
GeneralRe: same error message again.. Pin
Ranger498-Feb-07 8:25
Ranger498-Feb-07 8:25 
GeneralRe: same error message again.. Pin
Ranger498-Feb-07 9:18
Ranger498-Feb-07 9:18 
GeneralRe: same error message again.. Pin
Ravi Bhavnani8-Feb-07 11:49
professionalRavi Bhavnani8-Feb-07 11:49 
QuestionLinkButton Disappears when click on it. Pin
babutkchn8-Feb-07 5:09
babutkchn8-Feb-07 5:09 
QuestionGeting the process that uses a file Pin
jiorn8-Feb-07 4:57
jiorn8-Feb-07 4:57 
GeneralRe: Geting the process that uses a file Pin
Martin#8-Feb-07 6:01
Martin#8-Feb-07 6:01 
GeneralRe: Geting the process that uses a file Pin
Luc Pattyn8-Feb-07 10:36
sitebuilderLuc Pattyn8-Feb-07 10:36 
GeneralRe: Geting the process that uses a file Pin
jiorn11-Feb-07 7:24
jiorn11-Feb-07 7:24 
QuestionGeneral Web Service Question Pin
Planker8-Feb-07 4:31
Planker8-Feb-07 4:31 
AnswerRe: General Web Service Question Pin
Ravi Bhavnani8-Feb-07 6:09
professionalRavi Bhavnani8-Feb-07 6:09 
Questiondatagrid-paging Pin
sanaziuse8-Feb-07 3:54
sanaziuse8-Feb-07 3:54 
AnswerRe: datagrid-paging Pin
ednrgc8-Feb-07 4:40
ednrgc8-Feb-07 4:40 
QuestionOpen Excel File Stored in Access Database Pin
Shaurya_Rastogi8-Feb-07 3:35
Shaurya_Rastogi8-Feb-07 3:35 

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.