<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>编程爱好者 - NET资源</title>
    <link>http://8f999.com/forum.php?mod=forumdisplay&amp;fid=14</link>
    <description>Latest 20 threads of NET资源</description>
    <copyright>Copyright(C) 编程爱好者</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Thu, 30 Apr 2026 22:58:43 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://8f999.com/static/image/common/logo_88_31.gif</url>
      <title>编程爱好者</title>
      <link>http://8f999.com/</link>
    </image>
    <item>
      <title>C#读配置文件</title>
      <link>http://8f999.com/forum.php?mod=viewthread&amp;tid=34</link>
      <description><![CDATA[在C#中，读取配置文件通常使用System.Configuration.ConfigurationManager类。以下是一个简单的例子，展示如何读取app.config或web.config文件中的配置信息。

首先，在app.config或web.config文件中添加配置项，例如：


  
    
  


然后，使用以下C#代码读取配置信 ...]]></description>
      <category>NET资源</category>
      <author>admin</author>
      <pubDate>Sun, 19 May 2024 09:30:56 +0000</pubDate>
    </item>
    <item>
      <title>C#获取HTML内容</title>
      <link>http://8f999.com/forum.php?mod=viewthread&amp;tid=33</link>
      <description><![CDATA[在C#中，你可以使用HttpClient类来发送HTTP请求以获取HTML内容。以下是一个简单的示例代码：

using System;
using System.Net.Http;
using System.Threading.Tasks;

class Program
{
    static async Task Main(string[] args)
    {
        using (HttpClient clie ...]]></description>
      <category>NET资源</category>
      <author>admin</author>
      <pubDate>Sun, 19 May 2024 09:29:13 +0000</pubDate>
    </item>
    <item>
      <title>C#取网页内容</title>
      <link>http://8f999.com/forum.php?mod=viewthread&amp;tid=32</link>
      <description><![CDATA[在C#中，你可以使用HttpClient类来发送HTTP请求并获取网页内容。以下是一个简单的示例代码，展示了如何使用HttpClient获取指定网页的内容：

using System;
using System.Net.Http;
using System.Threading.Tasks;

class Program
{
    static async Task Main(string[ ...]]></description>
      <category>NET资源</category>
      <author>admin</author>
      <pubDate>Sun, 19 May 2024 09:28:28 +0000</pubDate>
    </item>
    <item>
      <title>C#获取当前时间戳</title>
      <link>http://8f999.com/forum.php?mod=viewthread&amp;tid=31</link>
      <description><![CDATA[在C#中，获取当前时间戳通常指的是获取自1970年1月1日以来的毫秒数。你可以使用DateTime类结合TimeSpan来实现这一点。以下是一个简单的例子：

using System;

public class TimestampExample
{
    public static void Main()
    {
        long currentTimestamp = G ...]]></description>
      <category>NET资源</category>
      <author>admin</author>
      <pubDate>Sun, 19 May 2024 09:27:03 +0000</pubDate>
    </item>
    <item>
      <title>c#int转换为double</title>
      <link>http://8f999.com/forum.php?mod=viewthread&amp;tid=30</link>
      <description><![CDATA[C#中将int转换为double有多种实现方法，如下所示：

使用显式转换（强制类型转换）：

int intValue = 10;
double doubleValue = (double)intValue;

使用隐式转换：

int intValue = 10;
double doubleValue = intValue;

使用Convert类的ToDouble方法：

int intValue ...]]></description>
      <category>NET资源</category>
      <author>admin</author>
      <pubDate>Sun, 19 May 2024 09:25:41 +0000</pubDate>
    </item>
  </channel>
</rss>