logo
  • 教程列表
  • SO官方文檔
  • XML 文件註釋
    • 簡單的方法註釋
    • 從文件註釋生成 XML
    • 方法文件使用 param 註釋並返回元素
    • 介面和類文件註釋
    • 引用文件中的另一個類
  1. StackOverflow 文件
  2. C# Language 教程
  3. XML 文件註釋
  4. 介面和類文件註釋

介面和類文件註釋

Created: November-22, 2018

/// <summary>
/// This interface can do Foo
/// </summary>
public interface ICanDoFoo
{
    // ... 
}

/// <summary>
/// This Bar class implements ICanDoFoo interface
/// </summary>
public class Bar : ICanDoFoo
{
    // ...
}

結果

介面摘要

StackOverflow 文件

類摘要

StackOverflow 文件

  • 引用文件中的另一個類
  • 方法文件使用 param 註釋並返回元素

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明