<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>GenXs</author_name>
  <author_url>https://blog.hatena.ne.jp/GenXs/</author_url>
  <blog_title>GenXs’s blog</blog_title>
  <blog_url>https://genxs222.hateblo.jp/</blog_url>
  <categories>
    <anon>DotNet40</anon>
  </categories>
  <description>面白いサンプル作れなかったが、やっと思いつきました。NullObjectならぬNullMethod？ //ジェネリックメッソッドでnullチェック Action NullFunc&lt;T&gt;(T o) { //3項演算子でoがnullなら何もしないデリゲートを返す。null以外ならあえてnullを返す。 return o == null ? (Action)( () =&gt; { } ): null; } //メインのStream系処理が終了したのでリソース解放 忌まわしいnullチェックを簡略化 public void close() { //Actionがnullだった場合_ShIO及び_Shell…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgenxs222.hateblo.jp%2Fentry%2F2015%2F04%2F12%2F010634&quot; title=&quot;ジェネリック・ラムダ・３項演算子・合体演算子 - GenXs’s blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-04-12 01:06:34</published>
  <title>ジェネリック・ラムダ・３項演算子・合体演算子</title>
  <type>rich</type>
  <url>https://genxs222.hateblo.jp/entry/2015/04/12/010634</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
