---
title: "Discussion on \"상태 반환 패턴을 이용한 예시\" | Hashnode"
description: "Discussion on \"상태 반환 패턴을 이용한 예시\". 아래의 글에 영감을 받아\nhttps://www.thereformedprogrammer.net/a-pattern-library-for-methods-that-return-a-status-including-localization/\n다음의 코드를 생성해 보았습니다. 양수만 더할 수 있는 AddPositive()가 있을 때 올바른 연산과 잘못된 연산을 Result<T>을 이용해 반환할 수 있습니다.\n// 함수의 성공/실패를 반환값을 통해 식별할 수 있..."
url: "https://hashnode.com/posts/7iob7yociouwmo2zmcdtjkjthltsnyqg7j207jqp7zwcioyyioylna/63d3c2d5f506a827b8daec31"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [상태 반환 패턴을 이용한 예시](https://dimohy.slogs.dev/7iob7yociouwmo2zmcdtjkjthltsnyqg7j207jqp7zwcioyyioylna?utm_source=hashnode&utm_medium=feed)

아래의 글에 영감을 받아 https://www.thereformedprogrammer.net/a-pattern-library-for-methods-that-return-a-status-including-localization/ 다음의 코드를 생성해 보았습니다. 양수만 더할 수 있는 AddPositive()가 있을 때 올바른 연산과 잘못된 연산을 Result<T>을 이용해 반환할 수 있습니다. // 함수의 성공/실패를 반환값을 통해 식별할 수 있...

Jan 27, 2023 · 1 min read · dimohy.slogs.dev  
Read the article

-   [#csharp](https://hashnode.com/tag/csharp)

## Written by

[dimohy](https://hashnode.com/@dimohy)

@dimohy · Kyunggi, KR

  
[View profile](https://hashnode.com/@dimohy)

@csharp

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
