C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Training   ASP.NET Web Hosting    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

Play Silverlight Games or Submit your Silverlight applications and earn 90% AdSense revenue.

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Resources » Errors and Solutions » General »

'ClassName’ Does Not Implement Interface Member ‘MethodName’


Posted Date: 28 Sep 2008    Resource Type: Errors and Solutions    Category: General
Author: Bindu BujjiMember Level: Gold    
Rating: Points: 5



Let us take the following Example:


interface IMyInterface
{
void SomeMethod(float f);
}
public class MyClass : IMyInterface
{
public void SomeMethod(double d)
{
}
}

So here the class MyClass doesnot implemented the method SomeMethod(float). So the method SomeMethod(doubt) doesnot count, because the parameters doesnot match ( did you observed one if float and other if double !!) .

So this is the reason why one will get the error that Does not Implement the so and so error. so you have to Implement the method of Interface in the class.

HOpe this helps.





Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
'ClassName’ Does Not Implement Interface Member ‘MethodName’  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Use of Unassigned Local Variable ‘n’
Previous Resource: Error Cannot Inherit From Sealed Class
Return to Discussion Resource Index
Post New Resource
Category: General


Post resources and earn money!
 
Related Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use