<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Seasons</author_name>
  <author_url>https://blog.hatena.ne.jp/Seasons/</author_url>
  <blog_title>Seasons.NET</blog_title>
  <blog_url>https://seasons.hateblo.jp/</blog_url>
  <categories>
    <anon>.NET Framework</anon>
  </categories>
  <description>delegate使って、ちょっとおもしろいことを。 delegate内でループ変数jの値を使って、各フォームが閉じられた時に targets[j].Flg = trueにしようとしてますが、 ループを抜けた後、このjは、j = 3をさすことになるので、 アクセス違反になってまいます。そこで、一度targetsの参照クラスを用意して、そのクラスをdelegate内で 渡せば、うまくいくことになります。 この時ローカル変数を渡していることになり、C++,Cで組んできた人は、 混乱するかもしれませんが、ヘルパクラスをコンパイラが用意してくれるので このコードは、エラーになりません。 1 namesp…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fseasons.hateblo.jp%2Fentry%2F20070204%2F1170521677&quot; title=&quot;delegateを知る - Seasons.NET&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>2007-02-04 01:54:37</published>
  <title>delegateを知る</title>
  <type>rich</type>
  <url>https://seasons.hateblo.jp/entry/20070204/1170521677</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
