C# & .NET · 1 / 1

Plain Old CLR Object

特定のフレームワークへの依存を持たない、単純なCLRクラス・オブジェクトを表す。

Compare in motion

キャラの位置データ

Synchronized comparison
AReference
表示と位置データが一体

表示と位置データが一体

BPlain Old CLR Object100%
POCO自体は見た目を変えず、データを独立に保てる

POCO自体は見た目を変えず、データを独立に保てる

Loading demo…

Scrub to pause and inspect. At 0%, B matches A; at 100%, B shows the effect. The scene repeats every 8 seconds.

Look for: 更新処理が位置を変える → 描画処理が動きを表示。

This model simplifies the technique to show its use case and effect. Operation counts describe the model; they are not performance measurements.

Read the storyboard

例: キャラの位置データ

  1. 1. Start

    通常のCLRクラスに値がある

  2. 2. Change

    更新処理が位置を変える

  3. 3. Result

    描画処理が動きを表示

POCO自体は見た目を変えず、データを独立に保てる。時間変化を示す模式図です。実際の描画結果や処理速度を再現したものではありません。

How it works

  1. 1. Input

    通常の CLR クラス

  2. 2. Process

    特定の枠組みへの依存を除く

  3. 3. Result

    単純なクラスとして扱える

A schematic of Plain Old CLR Object. It shows the relationship between input, process, and result; exact values and rendering depend on the implementation.

Notes

A Plain Old Common Language Runtime Object is an ordinary CLR class without dependencies on a particular framework's base classes or interfaces. It corresponds to the idea of a POJO in Java. In Entity Framework, the term also describes entities that remain independent of persistence concerns.

Where I encountered this

References

Further reading

Microsoft Learn — .NET Glossary ↗

A reference for this term.