本文整理汇总了C#中boolean类的典型用法代码示例。如果您正苦于以下问题:C# boolean类的具体用法?C# boolean怎么用?C# boolean使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
boolean类属于命名空间,在下文中一共展示了boolean类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: SyncCommand
public SyncCommand(int nCode, String strParam, int nCmdParam, boolean bShowStatus)
{
m_nCmdCode = nCode;
m_strCmdParam = strParam;
m_nCmdParam = nCmdParam;
m_bShowStatus = bShowStatus;
}
开发者ID:artemk,项目名称:rhodes,代码行数:7,代码来源:SyncThread.cs
示例2: SyncCommand
public SyncCommand(int nCode, boolean bShowStatus, String query_params)
{
m_nCmdCode = nCode;
m_nCmdParam = 0;
m_bShowStatus = bShowStatus;
m_strQueryParams = query_params != null ? query_params : "";
}
开发者ID:arissetyawan,项目名称:rhodes,代码行数:7,代码来源:SyncThread.cs
示例3: SyncNotification
public SyncNotification(String strUrl, String strParams, boolean bRemoveAfterFire)
{
if ( strUrl.length() > 0 )
m_strUrl = RHODESAPP().canonicalizeRhoUrl(strUrl);
m_strParams = strParams;
m_bRemoveAfterFire = bRemoveAfterFire;
}
开发者ID:arissetyawan,项目名称:rhodes,代码行数:8,代码来源:SyncNotify.cs
示例4: validHelper
//Helper Method to check if a row, column or section is valid
private boolean validHelper(char[][] board, int sRow, int eRow, int sCol, int eCol){
boolean[] used = new boolean[10];
for(int i=sRow; i<=eRow;i++){
for(int j=sCol;j<=eCol;j++){
if(board[i][j]=='.') //if the cell is empty
continue;
if(used[board[i][j]-'0']) //if the number already used, not valid
return false;
used[board[i][j]-'0']=true; //if the number is not used, set it as used
}
}
return true;
}
开发者ID:siagung,项目名称:Qilu-leetcode,代码行数:14,代码来源:B214.SudokuSolver.cs
示例5: executeSQL
public IDBResult executeSQL(String strStatement, Object[] values, boolean bNoCopy)
{
LOG.TRACE("executeSQL: " + strStatement + ";" + values);
IDBResult res = null;
Lock();
try{
res = m_dbStorage.executeSQL(strStatement, values, false, bNoCopy);
}finally
{
Unlock();
}
return res;
}
开发者ID:joelbm24,项目名称:rhodes,代码行数:13,代码来源:DBAdapter.cs
示例6: JoyInit
public static int JoyInit() {
if ( s_initialized ) {
JoyReset();
}
s_initialized = true;
int num_joydev = (int)win32.joyGetNumDevs();
#if DEBUG
cadencii.debug.push_log( "winmmhelp.JoyInit" );
cadencii.debug.push_log( " num_joydev=" + num_joydev );
#endif
if ( num_joydev <= 0 ) {
num_joydev = 0;
return num_joydev;
}
s_joy_attatched = new boolean[num_joydev];
s_joycaps = new JOYCAPSW[num_joydev];
int count = 0;
for ( int k = 0; k < num_joydev; k++ ) {
JOYINFO ji = new JOYINFO();
if ( win32.joyGetPos( (uint)k, ref ji ) == win32.JOYERR_NOERROR ) {
s_joy_attatched[k] = true;
JOYCAPSW jc = new JOYCAPSW();
win32.joyGetDevCapsW( (uint)k, ref jc, (uint)Marshal.SizeOf( jc ) );
s_joycaps[k] = jc;
count++;
} else {
s_joy_attatched[k] = false;
}
}
if ( count > 0 ) {
s_joy_available = new int[count];
int c = -1;
for ( int i = 0; i < num_joydev; i++ ) {
if ( s_joy_attatched[i] ) {
c++;
if ( c >= count ) {
break; //ここに来るのはエラー
}
s_joy_available[c] = i;
}
}
}
s_num_joydev = (uint)count;
return (int)s_num_joydev;
}
开发者ID:cadencii,项目名称:cadencii,代码行数:45,代码来源:winmmhelp.cs
示例7: Rorschach
public Rorschach(String [] args)
{
base (args, true, true, true, 16, 2000);
depth = option.intt ("depth", "level of details", 10000);
draw_delay = option.longg ("draw-delay",
"delay between iterations in millis", 10);
offset = option.intt ("offset", "compactness of pattern", 4);
int step_count = option.intt ("step-count",
"total number of steps", 50);
x_symmetry = option.booleann ("x-symmetry",
"if symmetry along x-axis", true);
y_symmetry = option.booleann ("y-symmetry",
"if symmetry along y-axis", false);
about ("0.1", "simulate ink-blot patterns",
"Stephen Tse <[email protected]>",
"http://escher.sourceforge.net/");
if (help_option) return;
step_size = depth / step_count;
}
开发者ID:jbnivoit,项目名称:projects,代码行数:23,代码来源:Rorschach.cs
示例8: Munch
public Munch(String [] args)
{
base (args, true, true, false, 16, 2000);
draw_delay = option.longg ("draw-delay",
"delay between iterations in millis", 10);
min_size = option.intt ("min-size",
"minimum size of square", 64);
shift = option.booleann ("shift",
"shift factor = munch in random order", true);
square_count = option.intt ("square-count",
"total number of squares", 5);
xor = option.booleann ("xor",
"use xor function to draw", true);
about ("0.1", "munching squares",
"Stephen Tse <[email protected]>",
"http://escher.sourceforge.net/");
if (help_option) return;
// TODO alpha composite (from RENDER/GLX) instead of xor?
if (xor) gc.set_function (gnu.x11.GC.Values.XOR);
}
开发者ID:jbnivoit,项目名称:projects,代码行数:24,代码来源:Munch.cs
示例9: statements
void statements(boolean cond, int x)
{
reg(new ISink() {
开发者ID:Winnerhust,项目名称:MyTool,代码行数:3,代码来源:braces_decl.cs
示例10: game
public game()
{
this.scriptVersionField = "0.0.0.0";
this.usetwosidedtableField = boolean.True;
this.noteBackgroundColorField = "#FFEBE8C5";
this.noteForegroundColorField = "#FF000000";
}
开发者ID:octgn,项目名称:OCTGN,代码行数:7,代码来源:Game.cs
示例11: counter
public counter()
{
this.defaultField = "0";
this.resetField = boolean.True;
}
开发者ID:octgn,项目名称:OCTGN,代码行数:5,代码来源:Game.cs
示例12: propertyDef
public propertyDef()
{
this.ignoreTextField = boolean.False;
this.textKindField = propertyDefTextKind.Free;
this.hiddenField = "False";
}
开发者ID:octgn,项目名称:OCTGN,代码行数:6,代码来源:Game.cs
示例13: group
public group()
{
this.orderedField = boolean.True;
this.movetoField = boolean.True;
this.collapsedField = boolean.False;
}
开发者ID:octgn,项目名称:OCTGN,代码行数:6,代码来源:Game.cs
示例14: gameVariable
public gameVariable()
{
this.defaultField = "0";
this.resetField = boolean.True;
this.globalField = boolean.True;
}
开发者ID:octgn,项目名称:OCTGN,代码行数:6,代码来源:Game.cs
示例15: action
public action()
{
this.defaultField = boolean.False;
}
开发者ID:octgn,项目名称:OCTGN,代码行数:4,代码来源:Game.cs
示例16: load
/**
* Load class file data into namespace of this class loader.
*
* @param name fully-qualified class name
* @param data raw bytes of class file
*/
public Class load (String name, byte [] data, boolean resolve) {
Class klass = defineClass (name, data, 0, data.Length);
if (resolve) resolveClass (klass);
classes.put (name, klass);
return klass;
}
开发者ID:jbnivoit,项目名称:projects,代码行数:12,代码来源:ReloadableClassLoader.cs
示例17: setNonThreadedMode
public void setNonThreadedMode(boolean b){m_bNoThreaded = b;}
开发者ID:douglaslise,项目名称:rhodes,代码行数:1,代码来源:ThreadQueue.cs
示例18: ASSERT
public void ASSERT(boolean exp, String message)
{
if (!exp)
logMessage(L_FATAL, message);
}
开发者ID:rrmartins,项目名称:rhodes,代码行数:5,代码来源:RhoLogger.cs
示例19: Dispose
/// <summary>
/// 使用中のリソースをすべてクリーンアップします。
/// </summary>
/// <param name="disposing">マネージ リソースが破棄される場合 true、破棄されない場合は false です。</param>
protected override void Dispose( boolean disposing )
{
if ( disposing && (components != null) ) {
components.Dispose();
}
base.Dispose( disposing );
}
开发者ID:cadencii,项目名称:cadencii,代码行数:11,代码来源:FormWordDictionaryUiImpl.cs
示例20: setAlwaysOnTop
public void setAlwaysOnTop( boolean alwaysOnTop ) {
base.TopMost = alwaysOnTop;
}
开发者ID:kixtarte,项目名称:cadencii,代码行数:3,代码来源:BForm.cs
注:本文中的boolean类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论