<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bleis-tift</author_name>
  <author_url>https://blog.hatena.ne.jp/bleis-tift/</author_url>
  <blog_title>ぐるぐる～</blog_title>
  <blog_url>https://bleis-tift.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>Scala では次のようなことが可能です。 def proc(node: Node) { node match { case &lt;hoge&gt;{value}&lt;/hoge&gt; =&gt; println(value) } } proc(&lt;hoge&gt;100&lt;/hoge&gt;) // =&gt; 100 これを C# で真似てみました。 Scala では入れ子など色々とできるのですが、そこまでは対応できていません。 使う側はこんな感じです。 static class Program { static Node Node(string name) { return new Node(name); } static void…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbleis-tift.hatenablog.com%2Fentry%2F20100401%2F1270050127&quot; title=&quot;Scala の match と XML リテラルをまねる - ぐるぐる～&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-04-01 00:42:07</published>
  <title>Scala の match と XML リテラルをまねる</title>
  <type>rich</type>
  <url>https://bleis-tift.hatenablog.com/entry/20100401/1270050127</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
