<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>YuukTsuchida</author_name>
  <author_url>https://blog.hatena.ne.jp/YuukTsuchida/</author_url>
  <blog_title>YuukTsuchida's blog</blog_title>
  <blog_url>https://yukimemo.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>C#のキャストで詰まった所があったので忘れないように書いておこう。 C#の型変換は暗黙的変換と明示的変換の2つがある。 暗黙的型変換 変数に対して別の型の変数を代入すると自動的に型を変換してくれる機能。 int a = 10; long b = a; float c = 10.0f; double d = a; このように普通に代入式を書いてやるだけで int → long float → double へと変換を行ってくれる。 ただ、暗黙的変換は変換後に情報が失われない場合にのみ可能という条件がつく。 例えば long a = 10; int b = a; double c = 10.0; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyukimemo.hatenadiary.jp%2Fentry%2F2014%2F05%2F13%2F232511&quot; title=&quot;C#での型変換 - YuukTsuchida&amp;#39;s blog&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>2014-05-13 23:25:11</published>
  <title>C#での型変換</title>
  <type>rich</type>
  <url>https://yukimemo.hatenadiary.jp/entry/2014/05/13/232511</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
