<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.hgotoh.jp/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>努力したWiki - documents:csharp</title>
        <description>推敲の足りないメモ書き多数</description>
        <link>https://wiki.hgotoh.jp/</link>
        <lastBuildDate>Mon, 27 Apr 2026 15:26:52 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://wiki.hgotoh.jp/_media/wiki/logo.png</url>
            <title>努力したWiki</title>
            <link>https://wiki.hgotoh.jp/</link>
        </image>
        <item>
            <title>MSチャートとリフレクションの組み合わせ例</title>
            <link>https://wiki.hgotoh.jp/documents/csharp/code-001</link>
            <description>MSチャートとリフレクションの組み合わせ例

2019年08月05日

お仕事関係で調べた時のメモを自分用に貼っておく。

概要

あるクラスがあって、

	*  クラスの保持データをグラフで表示させる。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 02 Nov 2024 13:39:07 +0000</pubDate>
        </item>
        <item>
            <title>C#でJSONを読み書きしてみる</title>
            <link>https://wiki.hgotoh.jp/documents/csharp/code-002</link>
            <description>C#でJSONを読み書きしてみる

2016/12/11

自分用メモ

下準備

参照にアセンブリ System.Runtime.Serialization を追加しておく。



クラスをJSONでシリアライズする

C#の属性でシリアライズするクラスやメンバーを明示する。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 02 Nov 2024 13:39:07 +0000</pubDate>
        </item>
        <item>
            <title>.NET Framewrok リフレクションの使い方メモ</title>
            <link>https://wiki.hgotoh.jp/documents/csharp/code-003</link>
            <description>.NET Framewrok リフレクションの使い方メモ

2012/03/23

method2について、会社でもう少し楽が出来る方法を若様に教わったので修正。

2012/03/21

C# + .NET FrameworkでReflectionを使う際のメモ書き。
うまくまとまった解説をなかなか見つけられなかったので、個人的に調べてわかった範囲でサンプルコードを書いてメモとする。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 02 Nov 2024 13:39:07 +0000</pubDate>
        </item>
        <item>
            <title>ウインドウズのウインドウをコマンドラインで操作する</title>
            <link>https://wiki.hgotoh.jp/documents/csharp/code-005</link>
            <description>ウインドウズのウインドウをコマンドラインで操作する

ツイッタのTLで見かけた『民安おぺれーたぁ』ってなんぞや？と見てみるとVOICEROIDにメッセージを送ってしゃべらせるアプリ(というかブリッジ的なもの？)
ニコニコ生放送とかでコメントを読ませるのに使うらしい。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 02 Nov 2024 13:39:07 +0000</pubDate>
        </item>
        <item>
            <title>ネットワーク通信中のプロセスを取得する</title>
            <link>https://wiki.hgotoh.jp/documents/csharp/code-006</link>
            <description>ネットワーク通信中のプロセスを取得する

仕事で要り様になったので。

.NET Framework のクラスだけだと その通信を行っているプロセスを特定できないので、Windowsの iphlpapi.dll にあるエントリを呼び出す必要があります。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 02 Nov 2024 13:39:07 +0000</pubDate>
        </item>
        <item>
            <title>指定フォルダの情報取得</title>
            <link>https://wiki.hgotoh.jp/documents/csharp/code-007</link>
            <description>指定フォルダの情報取得

説明は後で。


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GetFolderSize
{
    class Program
    {
        static void Main(string[] args)
        {
            FolderNodes a = new FolderNodes(@&quot;D:\Perl64&quot;);
            ListFolderNode(a, 5);
        }
        static void ListFolderNode(FolderNodes fn, int maxLevel)
        {
            print();
            treeWalk(fn, maxLevel);
        }
        static v…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 02 Nov 2024 13:39:07 +0000</pubDate>
        </item>
        <item>
            <title>SAPI利用</title>
            <link>https://wiki.hgotoh.jp/documents/csharp/code-008</link>
            <description>SAPI利用

&lt;https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ee125663(v=vs.85)&gt;

DLL利用例



DLLコード

参照にSpeechLibを追加してください。※COM の Microsoft Speech Object Library です。


using SpeechLib;
using System;
using System.Collections.Generic;
using System.Threading;

namespace spitalkDLL
{
    public class SapiTalk
    {
        private SpVoice sapi = null;
        private Dictionary&lt;int, SpObjectToken&gt; SpeakerList = new Dictionary&lt;int, SpObjectToken&gt;();

        private int Speed = 0;
      …</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 02 Nov 2024 13:39:07 +0000</pubDate>
        </item>
        <item>
            <title>133.C#関連</title>
            <link>https://wiki.hgotoh.jp/documents/csharp/start</link>
            <description>133.C#関連</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 02 Nov 2024 13:36:45 +0000</pubDate>
        </item>
    </channel>
</rss>
