C#È¡µÃÓòÃûÒÔ¼°Ä¿Â¼µØÖ·µÄ·½·¨
using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
namespace SinvanCMS.Common
{
/// <summary>
/// È«¾ÖÀ࣬µ±Ç°ÓòÃû£¬ÎïÀí·¾¶
/// </summary>
public class Application
{
/// <summary>
/// »ñµÃurl·¾¶, http://localhost/www_dalian/fangyuan.asp µÄapp²¿·ÖÈ磺http://localhost/www_dalian
/// </summary>
public static string AppUrl
{
get
{
return "http://" + System.Web.HttpContext.Current.Request.Url.Host.ToString() + AppSiteName;
}
}
/// <summary>
/// »ñµÃ http://localhost/www_dalian/fangyuan.asp µÄ ²¿·ÖÈ磺www_dalian
/// </summary>
public static string AppSiteName
{
get
{
string SiteAddress = "";
SiteAddress = System.Web.HttpContext.Current.Request.ApplicationPath.ToString();
Ïà¹ØÎĵµ£º
¹ØÓÚC#ÖÐtimerÀà ÔÚC#Àï¹ØÓÚ¶¨Ê±Æ÷Àà¾ÍÓÐ3¸ö
1.¶¨ÒåÔÚSystem.Windows.FormsÀï
2.¶¨ÒåÔÚSystem.Threading.TimerÀàÀï
3.¶¨ÒåÔÚSystem.Timers.TimerÀàÀï
System.Windows.Forms.TimerÊÇÓ¦ÓÃÓÚWinFormÖеģ¬ËüÊÇͨ¹ýWindowsÏûÏ¢»úÖÆÊµÏ ......
ÕâÊÇÒ»¸öÓйطÖÒ³µÄʵÀý,½ö¹©²Î¿¼(´úÂëÀ´×ÔÍøÂç)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SQLite;
using System.Threading;
using System.Collections;
us ......
Ò»¡¢¶¨Òå
String.FormatÊǽ«Ö¸¶¨µÄ StringÀàÐ͵ÄÊý¾ÝÖеÄÿ¸ö¸ñʽÏîÌæ»»ÎªÏàÓ¦¶ÔÏóµÄÖµµÄÎı¾µÈЧÏî¡£
Èç:
£¨1£©
string p1 = "Jackie";
string p2 = "Aillo";
Response.Write(String.Format("Hello {0}, I'm {1}", p1, p2));
£¨2£©
Response.Write(String.Format("Hello {0}, I'm {1}", "Jackie", "Aillo"));
Õâ ......
1. ͨ¹ý get { return HostApplicationServices.WorkingDatabase; } µÃµ½µ±Ç°¹¤×÷Êý¾Ý¿â£¬¼´µ±Ç°Îĵµ±»×°ÈëCAD»·¾³ºóµÃµ½µÄËùÓж«Î÷¡£
2. ÊôÐԺͷ½·¨£º
¹¹Ô캯Êý£º
ÊôÐÔ£º
Attmode ÉèÖÃ
mode
ΪÊý¾Ý¿âµÄ
ATTMODE
Öµ£¬
ÊäÈëÐèÒªµÄ
ATTMODE
ϵͳ±äÁ¿Öµ£¨±ØÐëÔÚ·¶Î§
0-2
Ö®¼ä
Aunits ÊäÈëÐèÒªµÄ
AUNITS
......
´úÂ룺
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
  ......