Presentation is loading. Please wait.

Presentation is loading. Please wait.

C# Programming .NET / C# Group 検索ワードでみる C#の困り事とその対策

Similar presentations


Presentation on theme: "C# Programming .NET / C# Group 検索ワードでみる C#の困り事とその対策"— Presentation transcript:

1 C# Programming .NET / C# Group 検索ワードでみる C#の困り事とその対策
3/1/2017 7:39 PM C# Programming .NET / C# Group 検索ワードでみる C#の困り事とその対策 宇宙仮面 © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

2 自己紹介 宇宙仮面 C# Programming ウェブオーナー .NET / C# Group 管理人 INETA Japan メンバー
3/1/2017 7:39 PM 自己紹介 宇宙仮面 C# Programming ウェブオーナー .NET / C# Group 管理人 INETA Japan メンバー VSUG リッチクライアント・UI コントロール フォーラムリーダー Codeseek 勉強会メンバー .NET研究会メンバー VB.NET Group メンバー © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

3 Agenda C# Programming の検索ワードでみる困りごと .NET / C# Group の投稿から見る困りごと
3/1/2017 7:39 PM Agenda C# Programming の検索ワードでみる困りごと .NET / C# Group の投稿から見る困りごと 困った時の調べ方 © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

4 宇宙仮面のC# Programming http://uchukamen.com/
3/1/2017 7:39 PM 宇宙仮面のC# Programming © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

5 宇宙仮面のC# Programming アクセス状況
3/1/2017 7:39 PM 宇宙仮面のC# Programming アクセス状況 月間 27万ページビュー 月間 10万ユニークアクセス © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

6 宇宙仮面のC# Programming アクセス解析
3/1/2017 7:39 PM 宇宙仮面のC# Programming アクセス解析 検索エンジン OS ドメイン 検索ワード © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

7 宇宙仮面のC# Programming どんな検索ワードが多いのか?
3/1/2017 7:39 PM 宇宙仮面のC# Programming どんな検索ワードが多いのか? 関連項目ごとに分析 © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

8 宇宙仮面のC# Programming 検索ワードでみる困りごと
3/1/2017 7:39 PM 宇宙仮面のC# Programming 検索ワードでみる困りごと データベース 文字列操作 設定ファイル ファイル コントロール エラー SQL(3), sql(6), データベース(17), dataset(58), DataSet(59), ストアド(60) 正規表現(8), 文字列(31), string(32), フォーマット(38), Regex(95) app.config(21), ini ファイル(23), 設定ファイル(42), 設定(48), GetPrivateProfileString(61) ファイル(28), 読み込み(36), StreamWriter(55) ListView(16), DataGrid(26), listview(29), GridView(95) オブジェクト参照がオブジェクト(80),  エラー(87) © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

9 宇宙仮面のC# Programming 困りごと1: 正規表現
3/1/2017 7:39 PM 宇宙仮面のC# Programming 困りごと1: 正規表現 System.Text.RegularExpressions 文字列のパターンマッチングに最適 機能:一致、複数一致、置換 正規表現を試行錯誤しながらの開発は非効率。テストツールで正規表現を検証し、組みこむと楽。 簡単なテストツールを公開中。 © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

10 宇宙仮面のC# Programming 困りごと2: ini ファイル
3/1/2017 7:39 PM 宇宙仮面のC# Programming 困りごと2: ini ファイル ini ファイル関連の検索は多い。 App.config, web.config を使うのがお作法。 ini ファイルを使わないで済むように、要求仕様、基本仕様の段階で抑え込むことが大事。 しかし、過去の資産、XMLが面倒→iniファイルを使わざるをえないケースが多い。 ini ファイルを使用するには、GetPrivateProfileString interOp 呼び出しが必要。少し面倒になる。 Tips を公開中。 © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

11 宇宙仮面のC# Programming 困りごと3: エラーメッセージ
3/1/2017 7:39 PM 宇宙仮面のC# Programming 困りごと3: エラーメッセージ オブジェクト参照がオブジェクトインスタンスに設定されていません 毎月、必ずこのメッセージの検索ワードがある。 意味不明。 .NET 史上最悪のエラーメッセージ。 実は、System.NullReferenceException int[,,] a3 = null; foreach(int i in a3) Console.WriteLine("{0}", i); © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

12 .NET / C# Group の投稿から見る困りごと
3/1/2017 7:39 PM .NET / C# Group の投稿から見る困りごと C#に関することなら何でもOKの掲示板 30以上の.NET / C# 関連Web オーナーが参加 1180名 © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

13 .NET / C# Group の目的 目的: .Net/C# 初心者のための情報共有
3/1/2017 7:39 PM .NET / C# Group の目的 目的:   .Net/C# 初心者のための情報共有 参加資格: .Net/C# に興味があるかたならどなたでも。 ルール:  攻撃的な発言、回答はしない。       過去ログを見てくださいとは言わない。       同じ質問が何度あがっても良い。 .Net/C# に関することなら、雑談から質問まで何でもOK。 ご参加お待ちしています。 © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

14 .NET / C# Group 最近の投稿から分析
3/1/2017 7:39 PM .NET / C# Group 最近の投稿から分析 © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

15 .NET / C# Group 多い困りごと コントロール 文字列操作 データベース ファイル
3/1/2017 7:39 PM .NET / C# Group 多い困りごと コントロール 文字列操作 データベース ファイル もう少し頑張って調べれば、何とかなるものが多い。 標準機能以外のことをやろうと思ってはまる。Windows のお作法や、コントロールの機能をよく理解しておくことが重要。 DataGrid, ListBox, CheckBox, DataView, DateTimePicker, AxWebBrowser 文字列⇔数字変換 接続文字列、SqlParameter, SqlDataReader ファイル(28), 読み込み(36), StreamWriter(55) © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

16 困った時の調べ方 STEP1 まずは、MSDNで調べる。 STEP2 検索エンジンで国内の情報を調べる。
3/1/2017 7:39 PM 困った時の調べ方 STEP1 まずは、MSDNで調べる。 STEP2 検索エンジンで国内の情報を調べる。 STEP3 検索エンジンで海外の情報を調べる。 STEP4 コミュニティの掲示板などに質問する。 STEP5 最終的にMSDNで再確認する。 © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

17 困った時の調べ方 STEP1 まずは、MSDNで調べる
MSDNは情報の宝庫 ほとんどの質問は、MSDNで解決可能。 ただし、目的の情報にたどり着くのが難しい。慣れが必要。検索キーワードの与え方がポイント。 日本語が意味不明→URL を書き換えて、英語表記にしてみると分かる場合がある。 © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

18 困った時の調べ方 STEP2 国内検索エンジン
3/1/2017 7:39 PM 困った時の調べ方 STEP2 国内検索エンジン MSDNで解決できない場合、国内検索エンジン 検索式がポイント サイト内検索も活用 © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

19 困った時の調べ方 STEP3 検索エンジン→海外
3/1/2017 7:39 PM 困った時の調べ方 STEP3 検索エンジン→海外 国内でも解決できなければ、海外を検索 質、量、ともに圧倒的。ただし、玉石混合なので、必ず技術的に裏を取ることが重要 代表的なサイト The Code Project C# Help © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

20 困った時の調べ方 STEP4 コミュニティへ!
3/1/2017 7:39 PM 困った時の調べ方 STEP4 コミュニティへ! 海外でも解決できなければ、コミュニティへ投稿 コミュニティごとに特色 初心者~プロ向け: VSUG 初心者向け:   .NET/C# Group 投稿時の注意 どのようなコミュニティなのか把握しておく。 過去の投稿パターンも要チェック。 回答者はボランティア。礼儀を忘れずに。 複数のコミュニティをみている人も多い。クロスポストは避ける。 ~STEP4 まででだいたい解決する。 © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

21 困った時の調べ方 STEP5 MSDNで再度チェック
コミュニティも Web ページも、あくまでヒント!コードを理解しないでコピーするな! 検索や、コミュニティの掲示板で仕入れた情報は、必ずMSDNで裏付けを取れ! 慣れてくれば、自力でMSDNで解決できるようになってくる。 今日のワンポイント MSDNで再度チェック © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

22 技術情報リソース C# Programming: http://uchukamen.com
3/1/2017 7:39 PM 技術情報リソース C# Programming: INETA: VSUG: .NET / C# Group: © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

23 C# Programming .NET / C# Group 検索ワードでみる C#の困り事とその対策
3/1/2017 7:39 PM C# Programming .NET / C# Group 検索ワードでみる C#の困り事とその対策 ありがとうございました。 宇宙仮面 © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.


Download ppt "C# Programming .NET / C# Group 検索ワードでみる C#の困り事とその対策"

Similar presentations


Ads by Google