partial interface
,因为这在C#2.0中看起来非常好;我会在有时间的时候更改它,但是请注意,您可以在本地应用手动更改—只需编辑csharp.xslt文件文件。现在,xslt并不是每个人都喜欢的,但它应该是一个单行更改(接近单词)
interface
)-事实上,这可能是
partial
在这里:
<xsl:template match="ServiceDescriptorProto">
<xsl:if test="($optionClientProxy or $optionDataContract)">
[global::System.ServiceModel.ServiceContract(Name = @"<xsl:value-of select="name"/>")]</xsl:if>
public /* HERE => */ partial /* <= HERE */ interface I<xsl:value-of select="name"/>
{
<xsl:apply-templates select="method"/>
}
<xsl:if test="$optionProtoRpc">
public class <xsl:value-of select="name"/>Client : global::ProtoBuf.ServiceModel.RpcClient
{
public <xsl:value-of select="name"/>Client() : base(typeof(I<xsl:value-of select="name"/>)) { }
<xsl:apply-templates select="method/MethodDescriptorProto" mode="protoRpc"/>
}
</xsl:if>
<xsl:apply-templates select="." mode="clientProxy"/>
</xsl:template>