Click here to Skip to main content
15,908,842 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
if i write one class without any thing inside it,
when i create object and use it gives .GetDataTableSchema()

eg. public class ClassName
{ }
now when i write ClassName. it gives like
ClassName.Equals
ClassName.GetDataTableSchema
ClassName.ReferenceEquals
ClassName.SetCommandTimeout

why this four coming.
Posted
Comments
Maciej Los 23-Jul-13 8:02am    
Could you be more specific and provide more details?
Where you declare your class?

The default methods available on empty class are,

ClassName.Equals()
ClassName.GetHashCode()
ClassName.GetType()
ClassName.ToString()

Need more details regarding your class and Namespace.
 
Share this answer
 
In this case ... The bold one not default .. but they are coming because ... You have extension methods in your code ..... which are extending either object or a class........ click on goto definition ... and you will find this...


VB
ClassName.Equals
ClassName.GetDataTableSchema
ClassName.ReferenceEquals
ClassName.SetCommandTimeout
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900