· IntroductionFirst of all, let me tell you that I am not a C# expert. I am primarily a Java developer but have been experimenting C# and the .NET platform. Basically I am developing a SOAP Web Service using Java and Apache SOAP, and have decided to give my clients an option wh...
· PocketSOAP
This is a SOAP client COM component for the Windows family, originally targeted at PocketPC (hence the name), there is also a Win32 version that works on Windows 95/98/Me/NT4/2000/XP. The package includes a HTTP transport for making HTTP based SOAP requests, howeve...
· Wason (zhuhai)
本次只用一个实例,来说明在C#中如何使用自定义事件。
写一个类,此类包含了自定义事件: onSendMsg。
文件名:ChatServer.cs
public class ChatServer
{
public delegate void MyEventHandler(string msg);
public event MyEventHandler onSendMsg;
public void Sen...
· Multiple Implementation in C#
By Craig Breakspear
Can you inherit from multiple classes in C#? Simply put, this cannot be done. However there are ways around it. From a design perspective you must ask yourself, Will a Class fully represent an object? Meaning that, if we have ...
· 1.14 Properties
A property is a named attribute associated with an object or a class. Examples of properties include the length of a string, the size of a font, the caption of a window, the name of a customer, and so on. Properties are a natural extension of fields – both ar...
· using System;
using System.Text;namespace PubClass.CSharp.String
{
public class UTP8String
{
public long Length(string strLen)
{
bool winnt_chinese=true;
winnt_chinese=("中国".Length ==2);
if(winnt_chinese)...
· C# is a simple, modern, object oriented, and type-safe programming language derived from C and C++. C# (pronounced “C sharp”) is firmly planted in the C and C++ family tree of languages, and will immediately be familiar to C and C++ programmers. C# aims to combine the high ...
· 头晕脑涨地研究了一天,就为了实现在函数的参数中返回结构数组。现供大家分享,节省学习时间。实例:
/// <summary>
/// 用户信息结构
/// </summary>
public struct TUSER
{
public string LoginName;
public string LoginPass;
public string TrueName;
public ...