· 设计模式之Singleton
--------------------------------------------------------------------------------引言
相信大多数拜读过"Gang Of Four"(Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides)的经典之作《Design Pattern》的同僚们,对这本书一定推崇有加。曾有人这么 ...
· -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 = ...
· 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...
· 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...
· 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...
· 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...
· MemoryStream
As we already saw in the diagram, this class derives from the Stream base class and it is primarily used to read and write bytes of data from memory. The amount of memory buffer allocated for storing the data is determined by the value we pass to one of the many ...
· #资源编辑器
资源编辑器是创建或修改 Visual Studio 项目中所包含资源的专用环境。 Visual Studio 资源编辑器共享技术和接口,以帮助快速简便地创建和修改应用程序资源。 资源编辑器使您可以view resources in the appropriate editor、edit resources和preview resources。
在创建或打开资源时将 ...