What is the return type of a constructor in C#?
问题 I have asked this question for Java on this link I got some answers in java.Now i want to know it in C#. As we know the we do not have to add any return type to a C# constructor. class Sample{ ..... Sample(){ ........ } } In Objective C, if we create a constructor, it returns a pointer to its class. But it is not compulsory, I think. AClass *anObject = [[AClass alloc] init];//init is the constructor with return type a pointer to AClass Similarly, Is the constructor converted to a method which