Switch to Bing in English
Copilot
あなたの日常的な AI アシスタント
約 746,000 件の結果
    賛成票2edited Jul 1, 2015 at 17:18

    The "Father", "Youth", "Brother", etc... is not attribute of the person, but attribute of relationship between persons. One person can be both "Father" and "Brother" and "Uncle".

    Better design is something like this (i don't know all your requirements...

    public class Person {
    public Name{get;set;}
    // etc...
    public List<Relationship> Relationships{get;set;}
    }

    public class Relationship {
    public Person P1{get;set;}
    public Person P2{get;set;}
    public RelationshipKind Kind{get;set;}
    }

    public class RelationshipKind {
    Content Under CC-BY-SA license
    これは役に立ちましたか?
  1. .NET programming languages | C#, F#, and Visual Basic

  2. C# ガイド - .NET マネージド言語 | Microsoft Learn

  3. 他の人はこちらも質問
  4. Sharpe Family Singers - YouTube

    ウェブSharpe Family Singers. @SharpeFamilySingers 2.01M subscribers 614 videos. A Family who SINGS together.... STAYS together! 🥰🎶🎤 ️. patreon.com/SharpeFamilySingers and 3 more links.

    • 登録者数: 201万
    • C# Family Class Design - Stack Overflow

    • C Sharp (programming language) - Wikipedia

    • Introduction to C# - W3Schools

    • .NET: C# について学習しましょう | Microsoft Learn

    • C# Guide - .NET managed language | Microsoft Learn

    • C# Programming: What It Is, How It's Used + How to Learn It

    • Sharpe Family Singers (@sharpefamilysingers) Official | TikTok

    このサイトを利用すると、分析、カスタマイズされたコンテンツ、広告に Cookie を使用することに同意したことになります。サード パーティの Cookie に関する詳細情報|Microsoft のプライバシー ポリシー