約 746,000 件の結果
- Viewed 2k times2edited 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 .NET programming languages | C#, F#, and Visual Basic
さらに詳しく探す
C# ガイド - .NET マネージド言語 | Microsoft Learn
- 他の人はこちらも質問
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