# 比較 delegate , Task, Lazy 的行為方式

delegate : 是方法 所以 執行後才會開始運作, 所以得到的結果皆為每次執行後結果

Task : 是工作 所以 建立後馬上執行 並且可等待其回應, 所以每次都得到首次執行的回傳結果

Lazy : 是延後執行 所以 物件建立的方法要在物件存取時才會被執行, Lazy可在建立時定義每次存取的結果運作方式


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dcvsling.gitbook.io/tech-book/md/topic/csharp/asyncawait/bi-jiao-delegate-task-lazy-de-xing-wei-mo-shi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
