· using System;
using System.Collections ;
using System.IO ;
using System.Diagnostics ;
using System.Security.Cryptography ;namespace Bigeagle.Util
{
/// <summary>
/// 配置文件类,最终类
/// </summary>
public sealed class Ini
{
/// <su...
· I/O Classes
To understand how to carry out the reading and writing of data using the I/O classes, we will create a new ASP.NET web application in Visual C# using the File -> New Project dialog box. We will name the project IOExamples as shown in the following diagram:We wi...
· Imports System
Imports System.IO
Imports System.CollectionsModule Module1 Sub Main()
Dim objReader As New StreamReader("c:\test.txt")
Dim sLine As String = ""
Dim arrText As New ArrayList() Do
sLine = objReader...
· Public Sub SaveSettings()
Dim parentKey As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("Software", True)
Dim key As Microsoft.Win32.RegistryKey = parentKey.OpenSubKey(mcApplicationName, True)
If key Is Nothin...
· -huitiansou
'字符串转换成十六进制
Public Function StrToHex(ByVal strS As String) As StringDim abytS() As ByteDim bytTemp As ByteDim strTemp As StringDim lLocation As LongabytS = StrConv(strS, vbFromUnicode)For lLocation = 0 To UBound(abytS)bytTemp = abytS(lLocation)strTemp = ...
· 设计模式之Singleton
--------------------------------------------------------------------------------引言
相信大多数拜读过"Gang Of Four"(Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides)的经典之作《Design Pattern》的同僚们,对这本书一定推崇有加。曾有人这么 ...
· To bypass operating system checking : HKEY_LOCAL_MACHINE\Software\Rational Software\RSSetup\OsCheck
To bypass Visual Studio .NET version checking: HKEY_LOCAL_MACHINE\Software\Rational Software\RSSetup\IdeCheck