代码搜索:toString
找到约 10,000 项符合「toString」的源代码
代码结果 10,000
www.eeworm.com/read/169773/5410954
txt 字符.txt
常量字段
MinValue 最小可能值0x0000
MaxValue 最大可能值0xFFFF
静态方法
GetUnicodeCategory 判断字符的类形
IsDigit,IsLetter 等,按受char或string索引.
ToLower/ToUpper 大小它互换
实例方法
Equals
CompareTo
ToString char->string
www.eeworm.com/read/169773/5410955
txt 位标记.txt
位标记:是一个基础为Int32的枚举类型。
1.[Flags],将枚举值看作是一组标记
2.[Flags],特性会影响ToString,Format,Parse方法.
3.VS.NET窗体设计器在应[Flags]时出显示可能的值。
4.定义的符号不必为2的整数次方。
using System;
namespace TestEnum
{
[Flags]
enum Actio
www.eeworm.com/read/169773/5410956
txt 枚举类型.txt
枚举类型:定义了一组符号名称和数值对。
通常和需要它的类型定义在同一个层次上。
原因:
1.枚举类型使得程序更容易编写、阅读和维护。
2.枚举是强类型的。
继承自System.Enum->System.ValueType->System.Object
不能定义方法、属性、事件。
内部看,枚举类型就是定义了一组常数字段的结构。
每个枚举类型都有一个基础类型,它们可以 ...
www.eeworm.com/read/169773/5411079
txt 模式窗口返回值.txt
模式窗口:showModalDialog
dialogArguments+document.all.+控件名.+value
private void BtnOk_Click(object sender, System.EventArgs e)
{
System.Text.StringBuilder sb = new System.Text.StringBuild
www.eeworm.com/read/169773/5411086
txt 非模式窗口返回值.txt
在非模式窗口间传递数据:window.open
opener 指打开窗口父窗口
opener+document.all.+控件名.+value
opener.document.all.txt_Name.value
private void BtnOk_Click(object sender, System.EventArgs e)
{
System.Text.Str
www.eeworm.com/read/169773/5411195
txt 修改datagrid中的内容(单元格).txt
private void DGMain_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
//翻释内容
ListItemType tplit=e.Item.ItemType;
DataTable dt;
if(tplit==Lis
www.eeworm.com/read/169773/5411278
txt 树状控件.txt
安装 Microsoft IE Web Control 它不是VS.NET的一部分
using Microsoft.Web.UI.WebControls;//树状控件
private void Page_Load(object sender, System.EventArgs e)
{
if(!Page.IsPostBack)
{
//加载机构
www.eeworm.com/read/169753/5411344
java readfileexample.java
//Chapter 03, sample 35
//ReadFileExample.java
//Read a file.
package javaio;
import java.io.*;
public class ReadFileExample
{
public static void main(String[] args)
{
try
{
ReadF
www.eeworm.com/read/169753/5411478
java myreference.java
import java.lang.ref.*;
public class MyReference extends SoftReference {
public MyReference( Object referent ) {
super( referent );
}
public MyReference( Object referent, ReferenceQueue q