Hi....
I have a class having different methods with different parameters now I want to overload a method by increasing the one extra parameter like bellow..
public void Uper_PermonentMethod(string comm, long code, string itemname, string length, string collar, string neck, string chest, string waist, string cuff, string elbow, string hip, string ShoulderShape, string sleeves, string loosing, string armhole)
{
}
public void Uper_PermonentMethod(string comm, long code, string itemname, string length, string collar, string neck, string chest, string waist, string cuff, string elbow, string hip, string ShoulderShape, string sleeves, string loosing, string armhole,string OrderType)
{
}
bold method is overloaded method with OrderType Field...
But when I perform event in my application that exception is happening that
Method Not Found...
please help me...
Loading
VulpesPosted May 31, 2011, 11:48 AM
Jiteendra SampathiraoPosted May 31, 2011, 2:38 AM
Have a look at derived class: No of parameters of the method might be less or higher than parent class
method signature.
Kanhialal kkPosted May 31, 2011, 2:28 AM
sir this is not a dll file just a class is added in my project and nor it is used in any other project...
Posted May 31, 2011, 2:25 AM
If you're having multiple projects in a single solution , please setup proper Project Build Order. This will avoid this kind of issues.
Hope this helps you.
Kanhialal kkPosted May 31, 2011, 2:23 AM
following is the code which i have used for above method...
this.command = "insert into Perm_UperMeasurment(CCode,ItemName,Length,Collar,Neck,Chest,Waist,Cuff,Elbow,Hip,ShoulderShape,Sleeves,Loosing,Armhole,OrderType) values (@CCode,@ItemName,@Length,@Collar,@Neck,@Chest,@Waist,@Cuff,@Elbow,@Hip,@ShoulderShape,@Sleeves,@Loosing,@Armhole,@OrderType) ";
this.obj_two.Uper_PermonentMethod(this.command, this.code, this.itemname, this.length, this.collar, this.neck, this.chest, this.waist, this.cuff, this.elbow, this.hip, this.ShoulderShape, this.sleeves, this.loosing, this.armhole,this.OrderType);
I am initializing that class like...below
private ElegantWEBIFF6 obj = ((ElegantWEBIFF6)Activator.GetObject(typeof(ElegantWEBIFF6), "tcp://" + ServerName.server + ":8082/WEBIIF"));
Sam HobbsPosted May 31, 2011, 2:15 AM