<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>s51517765</author_name>
  <author_url>https://blog.hatena.ne.jp/s51517765/</author_url>
  <blog_title>プログラミング素人のはてなブログ</blog_title>
  <blog_url>https://s51517765.hatenadiary.jp/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>C#で関数を作っていると、複数のデータをreturnしたい場面があります。複数のreturnというとコーディング上、大きく２つの意味合いがありますが、一つ目は簡単で文字通り条件によって複数のreturnのいづれかが実行されます。 private double function(double a, double b) { if (a == b) { return 1; } else { return 0; } } このような場合は、コーディング規約等でretrunは1つにせよという風にされている場合もあるかもしれません。 その場合は、一度変数に入れてあげればよいです。 private doubl…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fs51517765.hatenadiary.jp%2Fentry%2F2019%2F08%2F19%2F073000&quot; title=&quot;C#で複数のデータをreturnする - プログラミング素人のはてなブログ&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>2019-08-19 07:30:00</published>
  <title>C#で複数のデータをreturnする</title>
  <type>rich</type>
  <url>https://s51517765.hatenadiary.jp/entry/2019/08/19/073000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
