<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Csh</author_name>
  <author_url>https://blog.hatena.ne.jp/Csh/</author_url>
  <blog_title>C#にハマってみる日記</blog_title>
  <blog_url>https://csh-2.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>using System; class CallByReferenceTest { static void Main() { int n = 5; Console.WriteLine(&quot;n: {0}&quot;, n); Square(ref n); // 引数渡す時もrefつけないとエラー。 Console.WriteLine(&quot;n: {0}&quot;, n); } // refキーワードを引数につけると参照渡しになる。 // 戻り値がvoidなのに、xが書き換わることに注意。 static void Square(ref int n) { n = n * n; } } ↓ n: 5 n: 25 refによっ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcsh-2.hatenadiary.org%2Fentry%2F20100310%2F1268169487&quot; title=&quot;実習　refキーワード - C#にハマってみる日記&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>2010-03-10 06:18:07</published>
  <title>実習　refキーワード</title>
  <type>rich</type>
  <url>https://csh-2.hatenadiary.org/entry/20100310/1268169487</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
