EXPERIENCE/WEB | .NET Framework(14)
-
/\s/g
if (Form.txtUserID.value.replace(/\s/g, "") == "") {\s : 공백 g : 전체검색 (global) txtUserID.replace(/\s/g, ""); => 문자열 txtUserID에 있는 모든 공백을 없앤다.
2013.05.10 -
c# 구조체 GetType().BaseType
using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace ex_refcalss{ class CPoint { private int x, y; public CPoint(int _x, int _y) { x = _x; y = _y; } public void print() { Console.WriteLine("base:{0}", GetType().BaseType); //base : System.Object 로 출력 Console.WriteLine("class:{0},{1}", x, y); } } struct SPoint { public int x, y; public SPoint(int _x, int _y)..
2013.04.25