<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>huskworks53</author_name>
  <author_url>https://blog.hatena.ne.jp/huskworks53/</author_url>
  <blog_title>HUSKING - kotteri</blog_title>
  <blog_url>https://husk.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>C#のプロパティ名をDatabaseのカラム名に変換したい時が稀に。。。 その際に作った変換するメソッドが以下。 変換メソッド public static string GetSnakeCase(string str) { var regex = new System.Text.RegularExpressions.Regex(&quot;[a-z][A-Z]&quot;); return regex.Replace(str, s =&gt; $&quot;{s.Groups[0].Value[0]}_{s.Groups[0].Value[1]}&quot;).ToUpper(); } 使用例 Console.WriteLine(GetS…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhusk.hatenablog.com%2Fentry%2F2020%2F03%2F22%2F202934&quot; title=&quot;【C#】Pascal、CamelケースをSnakeケースに変換する - HUSKING - kotteri&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>2020-03-22 20:29:34</published>
  <title>【C#】Pascal、CamelケースをSnakeケースに変換する</title>
  <type>rich</type>
  <url>https://husk.hatenablog.com/entry/2020/03/22/202934</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
