{"title":"C# \u30af\u30e9\u30b9\u306b\u5c5e\u6027\u3067IID\u3092\u6301\u305f\u305b\u308b","image_url":null,"version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2023%2F01%2F04%2F174725\" title=\"C# \u30af\u30e9\u30b9\u306b\u5c5e\u6027\u3067IID\u3092\u6301\u305f\u305b\u308b - potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["C#"],"provider_url":"https://hatena.blog","height":"190","description":"C#\u3067\u306f\u30ab\u30b9\u30bf\u30e0\u5c5e\u6027\u3067\u30af\u30e9\u30b9\u81ea\u4f53\u306bIID\u3092\u6301\u305f\u305b\u3089\u308c\u307e\u3059\u3002\u305f\u3060\u3057\u9759\u7684\u30e1\u30f3\u30d0\u30fc\u3088\u308a\u52d5\u4f5c\u306f\u9045\u304f\u3001Guid\u306e\u3088\u3046\u306a\u975e\u6a19\u6e96\u578b\u306f\u5c5e\u6027\u5b9a\u7fa9\u6642\u306e\u5f15\u6570\u306b\u6e21\u305b\u306a\u3044\u3088\u3046\u3067\u3059\u3002 using System.Reflection; Console.WriteLine(IIDAttribute.Of<ClassWithIPersistIID>()?.ToString(\"B\") ?? \"(\u672a\u5b9a\u7fa9)\"); Console.WriteLine(IIDAttribute.Of<ClassWithoutIID>()?.ToString(\"B\") ?? \"(\u672a\u5b9a\u7fa9)\"); //> {0000010c-0000-0000-c000-0\u2026","blog_title":"potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2","published":"2023-01-04 17:47:25","width":"100%","author_name":"potisan","provider_name":"Hatena Blog","url":"https://potisan-programming-memo.hatenablog.jp/entry/2023/01/04/174725","author_url":"https://blog.hatena.ne.jp/potisan/","type":"rich","blog_url":"https://potisan-programming-memo.hatenablog.jp/"}