<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Takachan</author_name>
  <author_url>https://blog.hatena.ne.jp/Takachan/</author_url>
  <blog_title>PG日誌</blog_title>
  <blog_url>https://takap-tech.com/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>C++</anon>
  </categories>
  <description>C++11からC++でもラムダ式が使用できるようになったので、今更ですが使い勝手と、運搬性をC#を比べてみました。ラムダ式を使用する方法と、変数に入れて持ち運ぶ方法の2とおりの使い方を確認しています。 C#でラムダを使用・運搬する 最初はC#です。かなり簡潔に書けます。これ以上の指定は存在しません。 public class CSharpClass { private flag; private Func&lt;int, bool&gt; method; // 単純な呼び出し public Func&lt;bool&gt; GetLambda(int a) { return () =&gt; this.flag; } //…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2017%2F07%2F28%2F135111&quot; title=&quot;C#とC++でラムダ式を利用、運搬性を確認する - PG日誌&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>https://cdn-ak.f.st-hatena.com/images/fotolife/T/Takachan/20170728/20170728135056.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-07-28 13:51:11</published>
  <title>C#とC++でラムダ式を利用、運搬性を確認する</title>
  <type>rich</type>
  <url>https://takap-tech.com/entry/2017/07/28/135111</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
