WriteXmlÀà(C#)
using System;
using System.Web;
using System.Data;
using System.Text;
using System.Xml;
using System.IO;
namespace Baolee.GeneralMethod
{
/// <summary>
/// WriteXml µÄժҪ˵Ã÷¡£
/// </summary>
public class WriteXml
{
/// <summary>
/// ¹¹Ô캯Êý
/// </summary>
public WriteXml()
{
//
// TODO: ÔÚ´Ë´¦Ìí¼Ó¹¹Ô캯ÊýÂß¼
//
}
/// <summary>
/// ¶ÁÈ¡XMLºÍXSD, Á½ÎļþͬÃûÈç¹ûÁ½Îļþ²»Í¬Ãû£¬Ôò²Î¿´LoadSignXML
/// </summary>
/// <param name="descDirectory"></param>
/// <param name="fileName">ÎļþÃû£¬²»´øÀ©Õ¹Ãû</param>
/// <returns></returns>
public DataSet Load(string descDirectory, string fileName)
{
DataSet set = new DataSet();
set.ReadXmlSchema(descDirectory + @"\" + fileName + ".xsd");
set.ReadXml(descDirectory + @"\" + fileName + ".xml");
return set;
}
/// <summary>
/// ¶ÁÈ¡µ¥Ò»XMLÎļþ
/// </summary>
/// <param name="descDirectory"></param>
/// <param name="fileName"></param>
/// <returns></returns>
public DataSet LoadSignXML(string descDirectory, string fileName)
{
XmlDataDocument document = new XmlDataDocument();
document.DataSet.ReadXml(descDirectory + @"\" + fileName + ".xml");
return document.DataSet;
}
/// <summary>
/// ¶ÁÈ¡XMLºÍXSD, Á½Îļþ²»Í¬Ãû
/// </summary>
/// <param name="descDirectory"></param>
/// <param name="xmlName"></param>
/// <param name="xsdName"></param>
/// <returns></returns>
public DataSet LoadSignXML(string descDirectory, string xmlName, string
Ïà¹ØÎĵµ£º
public enum GUIInfoType
{
guiText.
guiTextClass,
guiTextParent,
guiTextClassParent,
}
private static int level=0
public static int FindGUILike(ref int hWndArray,int hWndStart,ref string window ......
ÎÒÃÇ×öÁ˳ÌÐò£¬²»Ãâ»áÓа汾Éý¼¶£¬Õâ¾ÍÐèÒª³ÌÐòÓÐ×Ô¶¯°æ±¾Éý¼¶µÄ¹¦ÄÜ¡£
ÄÇô¿´¿´ÎÒÊÇÈçºÎʵÏÖ³ÌÐò×Ô¶¯¸üеġ£
Ö±½ÓÉÏ´úÂ룺
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using System.Net;
using System.Xml;
namespace ......
ÎÞÒâÖп´µ½ref¹Ø¼ü×Ö£¬Ö»¼ÇµÃÒ»¿ªÊ¼Ñ§Ï°C#µÄʱºò£¬ÓкܶණÎ÷¶¼Ìø¹ýÈ¥ÁË¡£ ½ñÌì¸Õ¿´¼ûÕâ¸ö¹Ø¼ü×ÖµÄʱºò£¬»¹Õæ²»ÖªµÀËüÓÐʲôÌرðµÄµØ·½¡£googleÁËһϣ¬ÕÒµ½Ò»Æª½âÊÍµÄ±È½Ï ºÃµÄÎÄÕ¡£ÈçÏ£º C# ÖеıäÁ¿ C# ÖеÄÊý¾ÝÓÐÁ½ÖÖÀàÐÍ£ºÒýÓÃÀàÐÍ£¨reference types£©ºÍÖµÀàÐÍ£¨value types£©¡£ ¼òµ¥ÀàÐÍ£¨°üÀ¨int, long, doubleµÈ£ ......
C#¸ñʽ»¯ÊýÖµ½á¹û±í
×Ö·û
˵Ã÷
ʾÀý
Êä³ö
C
»õ±Ò
string.Format("{0:C3}", 2)
¡ç2.000
D
Ê®½øÖÆ
string.Format("{0:D3}", 2)
002
E
¿Æѧ¼ÆÊý·¨
1.20E+001
1.20E+001
G
³£¹æ
string.Format("{0:G}", 2)
2
N
Ó÷ֺŸô¿ªµÄÊý×Ö
string.Format("{0:N}", 250000)
250,000.00
X
Ê®Áù½øÖÆ
string.Forma ......
asp.net(C#)×Ö·û´®¼ÓÃÜ
2010-03-12 09:59
using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography;//CryptographyÃÜÂëÊõ
namespace DAL
{
......