Dear tutor,
Could you please clear my doubt
I have a Class file like this: *SAMPLE1*(compiled as DLL)
public class Class1
{
public string GetMet()
{
return (DateTime.Now.ToString("dd/MM/yyyy"));
}
}
public class ClsMain
{
public string GetMet()
{
return("Maddy Strikes Again");
}
}
and i have another dll(*SAMPLE 2*) which has
public class Class1
{
public string GetMet(string format)
{
return (DateTime.Now.ToString(format));
}
}
public class clsAnother
{
public string GetMet()
{
return("Here we go");
}
}
and now i need to type forward the sample1.dll's Class1 to sample2 dll
as i researched (googled) i found that need to add this Following code in
Sample1. cs file
[assembly:TypeForwardedToAttribute(typeof(MyClass))]
so that i can forward to the that class to new Class in sample2.dll
is that correct what i am doing???
I got an error like
type or namespace name 'TypeForwardedToAttribute' could not be found (are
you missing a using directive or an assembly reference?)
Please help me out in this issue
thanks in advance
regards
sarvesh