473,785 Members | 2,396 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CS1574 on <see cref="[explicit interface implementation method]">

public class A : IComparable
{
int IComparable.Com pareTo(object obj)
{
return 1;
}
}

/// <summary>
/// <see cref="A.System. IComparable.Com pareTo"/>
/// </summary>
public class Form1 : System.Windows. Forms.Form
{
....
}

warning CS1574: XML comment on 'mynamespace
..Form1' has cref attribute 'A.System.IComp arable.CompareT o' that could not be found
Nov 15 '05 #1
3 3823
You get this because "A.System.IComp arable.CompareT o" is not defined in your
project.
HTH
Brian W

"Gergely Varadi" <tr********@fre email.hu> wrote in message
news:9c******** *************** ***@posting.goo gle.com...
public class A : IComparable
{
int IComparable.Com pareTo(object obj)
{
return 1;
}
}

/// <summary>
/// <see cref="A.System. IComparable.Com pareTo"/>
/// </summary>
public class Form1 : System.Windows. Forms.Form
{
...
}

warning CS1574: XML comment on 'mynamespace
.Form1' has cref attribute 'A.System.IComp arable.CompareT o' that could not

be found
Nov 15 '05 #2
SBNH (Sorry, but not helped) :)

I don't understand your answer. If I extend the previous example with:

public class A : IComparable
{
int IComparable.Com pareTo(object obj)
{
return 1;
}

void blabla()
{
}
}

/// <summary>
/// <see cref="A.System. IComparable.Com pareTo"/>,
/// <see cref="A.blabla"/>
/// </summary>
public class Form1 : System.Windows. Forms.Form
{
public Form1()
{
InitializeCompo nent();
A kakukk = new A();
kakukk.blabla() ;
((IComparable)k akukk).CompareT o(7);
}
}

, the second reference ('<see cref="A.blabla"/>') is accepted, the
first one not. If I watch the model using Reflector, it views
-A
-blabla() : void
-System.ICompara ble.CompareTo(O bject) : Int32

and if I invoke blabla(), the call stack in the debugger is:

TrySerializable .exe!proba46.A. blabla() Line 29 C#

while invoking the CompareTo method:

TrySerializable .exe!proba46.A. System.ICompara ble.CompareTo(S ystem.Object
obj = {7}) Line 24 C#

So, what am I doing wrong?

"Brian W" <brianw@gold_de ath_2_spam_rush .com> wrote in message news:<eJ******* *******@TK2MSFT NGP11.phx.gbl>. ..
You get this because "A.System.IComp arable.CompareT o" is not defined in your
project.
HTH
Brian W

Nov 15 '05 #3
Simply put, A.System.ICompa rable.CompareTo does not exist. And the doc
generator seems to have trouble with the interface implementation using that
signature.

IIRC reflection is not used to generate the doc XML, it comes straight from
the source.

Try defining A this way

public class A : IComparable
{
public int CompareTo(objec t obj)
{
return 1;
}

void blabla()
{
}
}

Then Form1 this way, (note the comment

/// <summary>
/// <see cref="A.Compare To"/>,
/// <see cref="A.blabla"/>
/// </summary>
public class Form1 : System.Windows. Forms.Form
{
public Form1()
{
InitializeCompo nent();
A kakukk = new A();
kakukk.blabla() ;
((IComparable)k akukk).CompareT o(7);
}
}

"Gergely Varadi" <tr********@fre email.hu> wrote in message
news:9c******** *************** ***@posting.goo gle.com...
SBNH (Sorry, but not helped) :)

I don't understand your answer. If I extend the previous example with:

public class A : IComparable
{
int IComparable.Com pareTo(object obj)
{
return 1;
}

void blabla()
{
}
}

/// <summary>
/// <see cref="A.System. IComparable.Com pareTo"/>,
/// <see cref="A.blabla"/>
/// </summary>
public class Form1 : System.Windows. Forms.Form
{
public Form1()
{
InitializeCompo nent();
A kakukk = new A();
kakukk.blabla() ;
((IComparable)k akukk).CompareT o(7);
}
}

, the second reference ('<see cref="A.blabla"/>') is accepted, the
first one not. If I watch the model using Reflector, it views
-A
-blabla() : void
-System.ICompara ble.CompareTo(O bject) : Int32

and if I invoke blabla(), the call stack in the debugger is:

TrySerializable .exe!proba46.A. blabla() Line 29 C#

while invoking the CompareTo method:

TrySerializable .exe!proba46.A. System.ICompara ble.CompareTo(S ystem.Object
obj = {7}) Line 24 C#

So, what am I doing wrong?

"Brian W" <brianw@gold_de ath_2_spam_rush .com> wrote in message

news:<eJ******* *******@TK2MSFT NGP11.phx.gbl>. ..
You get this because "A.System.IComp arable.CompareT o" is not defined in your project.
HTH
Brian W

Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
7722
by: Rolf Wester | last post by:
Hi, I have a form with a select element with multiple="true". When using the GET method (I suppose the same happens with the POST method) I can seen that the form sends channels=CH1&channels=CH2 when CH1 and CH2 have been choosen. $_GET gives me "CH2". Is there any way to get all the choosen channels elements? I would be very appreciative for any help. Thank you in anticipation. Regards
13
40767
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div style="display:none"> can be displayed by setting the style attribute to "display:", or hidden with "display:none". This gives the illusion that the person filling out the form is switching from page to page...without the overhead of extra hits on the server,...
16
1946
by: rik | last post by:
I was flicking through a PHP book (one of the teach in 24 hour ones) and I came across something I had never seen before in PHP. It was a method of printing out without using the print method, it was something like : <?= $myVar; ?> Is this an out dated method? Is it compatible with all versions of PHP (since implementation at least)?
9
1245
by: Mike Labosh | last post by:
Code is easy. These are two OOP design issues that I am chewing on. Coming from classic VB, I'm not great at OO design. I prefer to write mile long spaghetti methods in a Temp module, and then refactor them. Issue # 1 I have an Employee class that represents the state of an Employee record, and an EmployeeListItem class that represents Employee stuff to be loaded into a ListBox, e.g. EmployeeID, FirstName, LastName, ReadOnly...
22
130420
by: stephen | last post by:
I have created an order form that users javascript to create a new html document when the customers clicks the "print page" button. Once the new document has been created it then prints the document and closes it with the following code: <body onload="window.print(); window.close();"> This works correctly (or at least the way I expect it to work under MS Internet Explorer, but it cuases Netscape to "crash"
3
1455
by: Jim Carlock | last post by:
In creating a dynamic page with some static content, ie, the list of city names is standard HTML encoding. When I click on the link, I see the page reload itself instead of jumping to the content where <a name="raleigh"></a>. Any suggestions on how to get around this? Specifically the page I'm working with... http://microcosmotalk.com/live/category/NC/Swimming_Pool_Designers/?area=Raleigh+NC&builder=Swimming+Pool+Builder
37
4203
by: Jan Wagner | last post by:
Hi, can't figure this one out, what's the CSS way to specify the language? In HTML it would be simply an lang="xx" attribute, or XHTML xml:lang="xx", but, how about in CSS? This would be required for a screen reader (text to speech) for accessibility, to help the reader software use the correct presentation method (e.g. correct language module).
18
10760
by: zoilus | last post by:
Can not determine how "<?=PHP_SELF?>" is supposed to work. The below is the line of code. <!-- <form name="search" method="post" action="<?=$PHP_SELF?>"--> When the above statement is run the following is the result. You don't have permission to access /dev/forms/forms_testing/< on this server.
2
2015
by: Peter Laman | last post by:
In my app I need to dynamically generate a series hyperlinks. Each hyperlink's action must be to focus a field in a <form>. I created the following function to create such a link (the argument is a field object, e.g. <input>): function createFieldAnchor(field, linkText) { var anchor = document.createElement("a"); anchor.field = field; anchor.href='javascript:this.focusField()';
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10155
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9954
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7502
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5383
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4054
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2881
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.