· 业务外观和业务规则干什么?Duwamish 7业务逻辑分为两层业务外观和业务规则,那为什么要分为两层呢?他们干什么的?
业务外观// Fill in data for the OrderSummary table of OrderData
//
summaryRow[OrderData.TAX_FIELD] = orderRules.CalculateTax(order);
s...
· To wrap our target component for use by the client, we performed the following four steps:We created the actual component using the CLSID of the component passed to the moniker earlier in the metadata XML file.We created a DelegatorHook object for intercepting the QueryInterf...
· 自定义事件的使用例程
蓝色力量 cnhai@21cn.com 转贴请注明:开发者俱乐部(http://www.dev-club.com)2002.1.22
这段程序运用一个sever类设计一个聊天室:
//此类为服务器类-用于与客户端的通信,其中构造了几个自定义事件
using System;using System.Net;
using System.Net.Sockets;
using System...
· SmtpMail and MailMessage : Send mails in .NET Tools UsedVisual C# .NETNamespaceSystem.Web.UtilAssemblySystem.Web.dll
The SmtpMail class can be used to send from your C# application. Mail is by default queued on the system, ensuring that the calling program does not block netw...
· 可以用以下代码得到本机IP地址. Dim abc() As IPAddress
Dim aaa As IPHostEntry
MsgBox(Dns.GetHostName())
aaa = Dns.GetHostByName(Dns.GetHostName())
abc = aaa.AddressList
MsgBox(abc(0).ToString)
· Dim mc As ManagementClass
Dim moc As ManagementObjectCollection
Dim mo As ManagementObject
mc = New ManagementClass("Win32_NetworkAdapterConfiguration")
moc = mc.GetInstances() ' Get all network adapter instances
For Each mo I...
· 'The DotNet world is so beautiful.
'Enjoy the code below
Public Function ValueSepR(ByVal RawString As String, ByVal SepChar As String) As String
If InStr(1, RawString, SepChar) <> 0 Then
ValueSepR = Microsoft.VisualBasic.Right(RawString, Len(RawStrin...