[Mono-devel-list] Patch for full-featured mcs /doc support

Ian MacLean ianm at ActiveState.com
Thu Dec 2 04:19:43 EST 2004


Ian MacLean wrote:

>>Atsushi Eno wrote:
>>
>>I've attached the fix. I changed nothing other than doc.cs, so I
>>just attach it. I put the full patch here:
>>http://primates.ximian.com/~atsushi/mcs-doc-patches/mcs-doc-20041202.diff
>>
>> 
>>
>>    
>>
>>>maybe I should wait till you get this all committed to svn and then
>>>start logging these in bugzilla ?
>>>   
>>>
>>>      
>>>
>>No, let's fix all the problems before I check in the code, if any.
>>Please tell me if you found more problems. Thanks :-)
>>
>> 
>>
>>    
>>
>
>  
>
And another. crefs for exceptions are missing the T:namespace prefix in
the generated xml.

/// <exception cref="ArgumentNullException"><paramref name="name" /> is
<see langword="null" />.</exception>
/// <exception cref="ArgumentOutOfRangeException"><paramref name="name"
/> is a zero-length <see cref="string" />.</exception>
protected BuildAttributeAttribute(string name) {
Name = name;
}

generates:

csc output:
<exception cref="T:System.ArgumentNullException"><paramref name="name"/>
is <see langword="null"/>.</exception>
<exception cref="T:System.ArgumentOutOfRangeException"><paramref
name="name"/> is a zero-length <see cref="T:System.String"/>.</exception>

mcs output:
<exception cref="ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.</exception>
<exception cref="ArgumentOutOfRangeException">
<paramref name="name" /> is a zero-length <see cref="T:System.String"
/>.</exception>


Ian



More information about the Mono-devel-list mailing list