<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hanaaaaaachiru</author_name>
  <author_url>https://blog.hatena.ne.jp/hanaaaaaachiru/</author_url>
  <blog_title>はなちるのマイノート</blog_title>
  <blog_url>https://www.hanachiru-blog.com/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>はじめに 今回はC#7より追加された型によるswitch と C#8より追加された複数の値をまとめのswitchについて取り上げたいと思います。 はじめに 概要 型スイッチ 複数の値をまとめてswitchする 概要 型スイッチ C#7より型によるswitchができるようになりました。 static void Main(string[] args) { // int 1 TypeSwitch(1); // float 10 &gt;= 0 TypeSwitch(10.0f); // float -5 &lt; 0 TypeSwitch(-5.0f); } private static void TypeSw…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.hanachiru-blog.com%2Fentry%2F2024%2F02%2F12%2F120000&quot; title=&quot;【C#】C#7より追加された型によるswitch と C#8より追加された複数の値をまとめてswitchする 機能について - はなちるのマイノート&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>2024-02-12 12:00:00</published>
  <title>【C#】C#7より追加された型によるswitch と C#8より追加された複数の値をまとめてswitchする 機能について</title>
  <type>rich</type>
  <url>https://www.hanachiru-blog.com/entry/2024/02/12/120000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
