/// <remarks><c>T:Mono.DocTest.Generic.Func`2</c>.</remarks>
[Doc ("method")]
[return:Doc ("return", Field=false)]
- public delegate TRet Func<[Doc ("arg!")] TArg, [Doc ("ret!")] TRet> (
+ public delegate TRet Func<[Doc ("arg!")] in TArg, [Doc ("ret!")] out TRet> (
[Doc ("arg-actual")] TArg a
) where TArg : Exception;
}
<Type Name="Func<TArg,TRet>" FullName="Mono.DocTest.Generic.Func<TArg,TRet>">
- <TypeSignature Language="C#" Value="public delegate TRet Func<TArg,TRet>(TArg a) where TArg : Exception;" />
- <TypeSignature Language="ILAsm" Value=".class public auto ansi sealed Func`2<(class System.Exception) TArg, TRet> extends System.MulticastDelegate" />
+ <TypeSignature Language="C#" Value="public delegate TRet Func<in TArg,out TRet>(TArg a) where TArg : Exception;" />
+ <TypeSignature Language="ILAsm" Value=".class public auto ansi sealed Func`2<(class System.Exception) - TArg, + TRet> extends System.MulticastDelegate" />
<AssemblyInfo>
<AssemblyName>DocTest</AssemblyName>
</AssemblyInfo>
</Attribute>
</Attributes>
<Constraints>
+ <ParameterAttribute>Contravariant</ParameterAttribute>
<BaseTypeName>System.Exception</BaseTypeName>
</Constraints>
</TypeParameter>
<AttributeName>Mono.DocTest.Doc("ret!")</AttributeName>
</Attribute>
</Attributes>
+ <Constraints>
+ <ParameterAttribute>Covariant</ParameterAttribute>
+ </Constraints>
</TypeParameter>
</TypeParameters>
<Base>
<Type Name="Func<TArg,TRet>" FullName="Mono.DocTest.Generic.Func<TArg,TRet>">
- <TypeSignature Language="C#" Value="public delegate TRet Func<TArg,TRet>(TArg a) where TArg : Exception;" />
- <TypeSignature Language="ILAsm" Value=".class public auto ansi sealed Func`2<(class System.Exception) TArg, TRet> extends System.MulticastDelegate" />
+ <TypeSignature Language="C#" Value="public delegate TRet Func<in TArg,out TRet>(TArg a) where TArg : Exception;" />
+ <TypeSignature Language="ILAsm" Value=".class public auto ansi sealed Func`2<(class System.Exception) - TArg, + TRet> extends System.MulticastDelegate" />
<AssemblyInfo>
<AssemblyName>DocTest</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</Attribute>
</Attributes>
<Constraints>
+ <ParameterAttribute>Contravariant</ParameterAttribute>
<BaseTypeName>System.Exception</BaseTypeName>
</Constraints>
</TypeParameter>
<AttributeName>Mono.DocTest.Doc("ret!")</AttributeName>
</Attribute>
</Attributes>
+ <Constraints>
+ <ParameterAttribute>Covariant</ParameterAttribute>
+ </Constraints>
</TypeParameter>
</TypeParameters>
<Base>
<Type Name="Func<TArg,TRet>" FullName="Mono.DocTest.Generic.Func<TArg,TRet>">
- <TypeSignature Language="C#" Value="public delegate TRet Func<TArg,TRet>(TArg a) where TArg : Exception;" />
- <TypeSignature Language="ILAsm" Value=".class public auto ansi sealed Func`2<(class System.Exception) TArg, TRet> extends System.MulticastDelegate" />
+ <TypeSignature Language="C#" Value="public delegate TRet Func<in TArg,out TRet>(TArg a) where TArg : Exception;" />
+ <TypeSignature Language="ILAsm" Value=".class public auto ansi sealed Func`2<(class System.Exception) - TArg, + TRet> extends System.MulticastDelegate" />
<AssemblyInfo>
<AssemblyName>DocTest</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</Attribute>
</Attributes>
<Constraints>
+ <ParameterAttribute>Contravariant</ParameterAttribute>
<BaseTypeName>System.Exception</BaseTypeName>
</Constraints>
</TypeParameter>
<AttributeName>Mono.DocTest.Doc("ret!")</AttributeName>
</Attribute>
</Attributes>
+ <Constraints>
+ <ParameterAttribute>Covariant</ParameterAttribute>
+ </Constraints>
</TypeParameter>
</TypeParameters>
<Base>
<Type Name="Func<TArg,TRet>" FullName="Mono.DocTest.Generic.Func<TArg,TRet>">
- <TypeSignature Language="C#" Value="public delegate TRet Func<TArg,TRet>(TArg a) where TArg : Exception;" />
- <TypeSignature Language="ILAsm" Value=".class public auto ansi sealed Func`2<(class System.Exception) TArg, TRet> extends System.MulticastDelegate" />
+ <TypeSignature Language="C#" Value="public delegate TRet Func<in TArg,out TRet>(TArg a) where TArg : Exception;" />
+ <TypeSignature Language="ILAsm" Value=".class public auto ansi sealed Func`2<(class System.Exception) - TArg, + TRet> extends System.MulticastDelegate" />
<AssemblyInfo>
<AssemblyName>DocTest</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</Attribute>
</Attributes>
<Constraints>
+ <ParameterAttribute>Contravariant</ParameterAttribute>
<BaseTypeName>System.Exception</BaseTypeName>
</Constraints>
</TypeParameter>
<AttributeName>Mono.DocTest.Doc("ret!")</AttributeName>
</Attribute>
</Attributes>
+ <Constraints>
+ <ParameterAttribute>Covariant</ParameterAttribute>
+ </Constraints>
</TypeParameter>
</TypeParameters>
<Base>
</p>
<div id="T:Mono.DocTest.Generic.Func`2:Signature">
<h2>Syntax</h2>
- <div class="Signature">[Mono.DocTest.Doc("method")]<br />[return:Mono.DocTest.Doc("return", Field=false)]<br />public delegate <i title="return type, with attributes!">TRet</i> <b>Func<[Mono.DocTest.Doc("arg!")] TArg, [Mono.DocTest.Doc("ret!")] TRet></b> ([Mono.DocTest.Doc("arg-actual")] <i title="argument type, with attributes!">TArg</i> a)<br /> where TArg : <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Exception">Exception</a></div>
+ <div class="Signature">[Mono.DocTest.Doc("method")]<br />[return:Mono.DocTest.Doc("return", Field=false)]<br />public delegate <i title="return type, with attributes!">TRet</i> <b>Func<[Mono.DocTest.Doc("arg!")] TArg, [Mono.DocTest.Doc("ret!")] TRet></b> ([Mono.DocTest.Doc("arg-actual")] <i title="argument type, with attributes!">TArg</i> a)<br /> where TArg : <a href="http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Exception">Exception</a><br /> where TRet : </div>
</div>
<div class="Remarks" id="T:Mono.DocTest.Generic.Func`2:Docs">
<h4 class="Subsection">Type Parameters</h4>