本文整理汇总了C#中com类的典型用法代码示例。如果您正苦于以下问题:C# com类的具体用法?C# com怎么用?C# com使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
com类属于命名空间,在下文中一共展示了com类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: areIntersecting
public static bool areIntersecting(com.brashmonkey.spriter.SpriterRectangle rect1
, com.brashmonkey.spriter.SpriterRectangle rect2)
{
return rect1.isInisde(rect2.left, rect2.top) || rect1.isInisde(rect2.right, rect2
.top) || rect1.isInisde(rect2.left, rect2.bottom) || rect1.isInisde(rect2.right,
rect2.bottom);
}
示例2: JsonReadContext
public JsonReadContext(com.fasterxml.jackson.core.json.JsonReadContext parent, com.fasterxml.jackson.core.json.DupDetector
dups, int type, int lineNr, int colNr)
: base()
{
// // // Configuration
// // // Optional duplicate detection
/*
/**********************************************************
/* Simple instance reuse slots; speeds up things
/* a bit (10-15%) for docs with lots of small
/* arrays/objects (for which allocation was
/* visible in profile stack frames)
/**********************************************************
*/
/*
/**********************************************************
/* Location/state information (minus source reference)
/**********************************************************
*/
/*
/**********************************************************
/* Instance construction, config, reuse
/**********************************************************
*/
_parent = parent;
_dups = dups;
_type = type;
_lineNr = lineNr;
_columnNr = colNr;
_index = -1;
}
示例3: ExportExWorkCalendar
public ActionResult ExportExWorkCalendar(string dateIndexTo, string dateIndex, DateTime? dateIndexDate,
DateTime? dateIndexToDate, string productLine, com.Sconit.CodeMaster.TimeUnit dateType )
{
com.Sconit.CodeMaster.ResourceGroup resourceGroup = com.Sconit.CodeMaster.ResourceGroup.EX;
var table = _GetMrpWorkingCalendarView(dateIndexTo, dateIndex, dateIndexDate, dateIndexToDate, productLine, dateType, resourceGroup);
return new DownloadFileActionResult(table, "ExWorkCalendar.xls");
}
示例4: JsonWriteContext
protected internal JsonWriteContext(int type, com.fasterxml.jackson.core.json.JsonWriteContext
parent, com.fasterxml.jackson.core.json.DupDetector dups)
: base()
{
// // // Return values for writeValue()
// in root context
// // // Optional duplicate detection
/*
/**********************************************************
/* Simple instance reuse slots; speed up things
/* a bit (10-15%) for docs with lots of small
/* arrays/objects
/**********************************************************
*/
/*
/**********************************************************
/* Location/state information (minus source reference)
/**********************************************************
*/
/*
/**********************************************************
/* Life-cycle
/**********************************************************
*/
_type = type;
_parent = parent;
_dups = dups;
_index = -1;
}
示例5: TokenFilterContext
protected internal TokenFilterContext(int type, com.fasterxml.jackson.core.filter.TokenFilterContext
parent, com.fasterxml.jackson.core.filter.TokenFilter filter, bool startHandled
)
: base()
{
/*
/**********************************************************
/* Simple instance reuse slots; speed up things
/* a bit (10-15%) for docs with lots of small
/* arrays/objects
/**********************************************************
*/
/*
/**********************************************************
/* Location/state information
/**********************************************************
*/
/*
/**********************************************************
/* Life-cycle
/**********************************************************
*/
_type = type;
_parent = parent;
_filter = filter;
_index = -1;
_startHandled = startHandled;
_needToHandleName = false;
}
示例6: Run
public override long Run(com.android.vending.billing.IMarketBillingService service)
{
Bundle request = makeRequestBundle("REQUEST_PURCHASE");
request.PutString(Consts.BILLING_REQUEST_ITEM_ID, mProductId);
request.PutString(Consts.BILLING_REQUEST_ITEM_TYPE, mProductType);
// Note that the developer payload is optional.
if (mDeveloperPayload != null) {
request.PutString(Consts.BILLING_REQUEST_DEVELOPER_PAYLOAD, mDeveloperPayload);
}
Bundle response = service.SendBillingRequest(request);
PendingIntent pendingIntent
= response.GetParcelable(Consts.BILLING_RESPONSE_PURCHASE_INTENT) as PendingIntent;
if (pendingIntent == null)
{
Log.Error("BillingService", "Error with requestPurchase");
return Consts.BILLING_RESPONSE_INVALID_REQUEST_ID;
}
Intent intent = new Intent();
ResponseHandler.buyPageIntentResponse(pendingIntent, intent);
return response.GetLong(Consts.BILLING_RESPONSE_REQUEST_ID,
Consts.BILLING_RESPONSE_INVALID_REQUEST_ID);
}
示例7: configureDiagnosticGroups
/// <summary>
/// Convert jsCompiler options to Google Closure Compiler options.
/// </summary>
/// <param name="options1"></param>
/// <param name="options2"></param>
private void configureDiagnosticGroups(jsCompiler.Core.CompilerOptions options1, com.google.javascript.jscomp.CompilerOptions options2)
{
// Set the compiler checks below tight...
/*
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.MISSING_PROPERTIES, com.google.javascript.jscomp.CheckLevel.ERROR);
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.UNDEFINED_VARIABLES, com.google.javascript.jscomp.CheckLevel.ERROR);
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.CHECK_TYPES, com.google.javascript.jscomp.CheckLevel.ERROR);
*/
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.ACCESS_CONTROLS, getCheckLevel(options1.DiagnosticGroup.AccessControl));
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.AMBIGUOUS_FUNCTION_DECL, getCheckLevel(options1.DiagnosticGroup.AmbiguousFunctionDeclaration));
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.CHECK_REGEXP, getCheckLevel(options1.DiagnosticGroup.CheckRegularExpression));
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.CHECK_TYPES, getCheckLevel(options1.DiagnosticGroup.CheckTypes));
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.CHECK_USELESS_CODE, getCheckLevel(options1.DiagnosticGroup.UselessCode));
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.CHECK_VARIABLES, getCheckLevel(options1.DiagnosticGroup.CheckVariables));
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.CONSTANT_PROPERTY, getCheckLevel(options1.DiagnosticGroup.ConstantProperty));
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.DEPRECATED, getCheckLevel(options1.DiagnosticGroup.Deprecated));
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.DUPLICATE_MESSAGE, getCheckLevel(options1.DiagnosticGroup.DuplicateMessage));
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.ES5_STRICT, getCheckLevel(options1.DiagnosticGroup.ES5Strict));
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.EXTERNS_VALIDATION, getCheckLevel(options1.DiagnosticGroup.ExternsValidation));
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.FILEOVERVIEW_JSDOC, getCheckLevel(options1.DiagnosticGroup.FileOverviewTags));
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.GLOBAL_THIS, getCheckLevel(options1.DiagnosticGroup.GlobalThis));
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.INTERNET_EXPLORER_CHECKS, getCheckLevel(options1.DiagnosticGroup.InternetExplorerChecks));
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.INVALID_CASTS, getCheckLevel(options1.DiagnosticGroup.InvalidCasts));
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.MISSING_PROPERTIES, getCheckLevel(options1.DiagnosticGroup.MissingProperties));
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.NON_STANDARD_JSDOC, getCheckLevel(options1.DiagnosticGroup.NonStandard_JSDoc));
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.STRICT_MODULE_DEP_CHECK, getCheckLevel(options1.DiagnosticGroup.StrictModuleDependencyCheck));
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.TYPE_INVALIDATION, getCheckLevel(options1.DiagnosticGroup.TypeInvalidation));
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.UNDEFINED_NAMES, getCheckLevel(options1.DiagnosticGroup.UndefinedNames));
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.UNDEFINED_VARIABLES, getCheckLevel(options1.DiagnosticGroup.UndefinedVariables));
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.UNKNOWN_DEFINES, getCheckLevel(options1.DiagnosticGroup.UnknownDefines));
options2.setWarningLevel(com.google.javascript.jscomp.DiagnosticGroups.VISIBILITY, getCheckLevel(options1.DiagnosticGroup.Visibility));
}
示例8: JsonGeneratorImpl
public JsonGeneratorImpl(com.fasterxml.jackson.core.io.IOContext ctxt, int features
, com.fasterxml.jackson.core.ObjectCodec codec)
: base(features, codec)
{
/*
/**********************************************************
/* Constants
/**********************************************************
*/
/*
/**********************************************************
/* Configuration, basic I/O
/**********************************************************
*/
/*
/**********************************************************
/* Configuration, output escaping
/**********************************************************
*/
/*
/**********************************************************
/* Configuration, other
/**********************************************************
*/
/*
/**********************************************************
/* Life-cycle
/**********************************************************
*/
_ioContext = ctxt;
if (isEnabled(com.fasterxml.jackson.core.JsonGenerator.Feature.ESCAPE_NON_ASCII))
{
setHighestNonEscapedChar(127);
}
}
示例9: GeneratorBase
protected internal GeneratorBase(int features, com.fasterxml.jackson.core.ObjectCodec
codec)
: base()
{
// // // Constants for validation messages (since 2.6)
/*
/**********************************************************
/* Configuration
/**********************************************************
*/
/*
/**********************************************************
/* State
/**********************************************************
*/
/*
/**********************************************************
/* Life-cycle
/**********************************************************
*/
_features = features;
_objectCodec = codec;
com.fasterxml.jackson.core.json.DupDetector dups = com.fasterxml.jackson.core.JsonGenerator.Feature
.STRICT_DUPLICATE_DETECTION.enabledIn(features) ? com.fasterxml.jackson.core.json.DupDetector
.rootDetector(this) : null;
_writeContext = com.fasterxml.jackson.core.json.JsonWriteContext.createRootContext
(dups);
_cfgNumbersAsStrings = com.fasterxml.jackson.core.JsonGenerator.Feature.WRITE_NUMBERS_AS_STRINGS
.enabledIn(features);
}
示例10: configureCompileLevel
/// <summary>
/// Internal translation for compiler level between exposed setting in C# and java
/// </summary>
/// <param name="options1"></param>
/// <param name="options2"></param>
private void configureCompileLevel(jsCompiler.Core.CompilerOptions options1, com.google.javascript.jscomp.CompilerOptions options2)
{
switch (options1.CompilerLevel)
{
case jsCompiler.Core.CompilerOptions.ECompilerLevel.WhiteSpaceOnly:
{
com.google.javascript.jscomp.CompilationLevel.WHITESPACE_ONLY.setOptionsForCompilationLevel(options2);
break;
}
case jsCompiler.Core.CompilerOptions.ECompilerLevel.SimpleOptimization:
{
com.google.javascript.jscomp.CompilationLevel.SIMPLE_OPTIMIZATIONS.setOptionsForCompilationLevel(options2);
break;
}
case jsCompiler.Core.CompilerOptions.ECompilerLevel.AdvancedOptimization:
{
com.google.javascript.jscomp.CompilationLevel.ADVANCED_OPTIMIZATIONS.setOptionsForCompilationLevel(options2);
break;
}
default:
{
break;
}
}
}
示例11: onDeleteRoomDone
public void onDeleteRoomDone(com.shephertz.app42.gaming.multiplayer.client.events.RoomEvent roomEventObj)
{
if (roomEventObj.getData() != null)
{
Debug.WriteLine("onDeleteRoom " + roomEventObj.getData().getId() + " " + roomEventObj.getResult());
}
}
示例12: createFlattened
/// <summary>
/// Method that will construct a parser (possibly a sequence) that
/// contains all given sub-parsers.
/// </summary>
/// <remarks>
/// Method that will construct a parser (possibly a sequence) that
/// contains all given sub-parsers.
/// All parsers given are checked to see if they are sequences: and
/// if so, they will be "flattened", that is, contained parsers are
/// directly added in a new sequence instead of adding sequences
/// within sequences. This is done to minimize delegation depth,
/// ideally only having just a single level of delegation.
/// </remarks>
public static com.fasterxml.jackson.core.util.JsonParserSequence createFlattened(
com.fasterxml.jackson.core.JsonParser first, com.fasterxml.jackson.core.JsonParser
second)
{
if (!(first is com.fasterxml.jackson.core.util.JsonParserSequence || second is com.fasterxml.jackson.core.util.JsonParserSequence
))
{
// simple:
return new com.fasterxml.jackson.core.util.JsonParserSequence(new com.fasterxml.jackson.core.JsonParser
[] { first, second });
}
Sharpen.AList<com.fasterxml.jackson.core.JsonParser> p = new Sharpen.AList<com.fasterxml.jackson.core.JsonParser
>();
if (first is com.fasterxml.jackson.core.util.JsonParserSequence)
{
((com.fasterxml.jackson.core.util.JsonParserSequence)first).addFlattenedActiveParsers
(p);
}
else
{
p.Add(first);
}
if (second is com.fasterxml.jackson.core.util.JsonParserSequence)
{
((com.fasterxml.jackson.core.util.JsonParserSequence)second).addFlattenedActiveParsers
(p);
}
else
{
p.Add(second);
}
return new com.fasterxml.jackson.core.util.JsonParserSequence(Sharpen.Collections.ToArray
(p, new com.fasterxml.jackson.core.JsonParser[p.Count]));
}
示例13: Spriter
public Spriter(com.discobeard.spriter.dom.SpriterData spriterData, com.brashmonkey.spriter.file.FileLoader loader, java.io.File scmlFile)
{
this.scmlFile = scmlFile;
this.spriterData = spriterData;
this.loader = loader;
this.loadResources();
}
示例14: draw
/// <summary>Draws the given player with its sprites.</summary>
/// <remarks>Draws the given player with its sprites.</remarks>
/// <param name="player">Player to draw.</param>
public virtual void draw(com.brashmonkey.spriter.player.SpriterAbstractPlayer player
)
{
com.brashmonkey.spriter.draw.DrawInstruction[] instructions = player.getDrawInstructions
();
for (int i = 0; i < player.getObjectsToDraw(); i++)
{
if (instructions[i].obj.isVisible())
{
this.draw(instructions[i]);
}
foreach (com.brashmonkey.spriter.player.SpriterAbstractPlayer pl in player.getAttachedPlayers
())
{
if (player.getZIndex() == i)
{
draw(pl);
pl.drawn = true;
}
}
}
foreach (com.brashmonkey.spriter.player.SpriterAbstractPlayer pl_1 in player.getAttachedPlayers
())
{
if (!player.drawn)
{
draw(pl_1);
}
player.drawn = false;
}
}
示例15: calcBoundingBox
public virtual void calcBoundingBox(com.brashmonkey.spriter.SpriterRectangle @base
)
{
this.boundingBox.set(@base);
foreach (com.brashmonkey.spriter.objects.SpriterObject @object in this.childObjects)
{
com.brashmonkey.spriter.SpriterPoint[] points = @object.getBoundingBox();
this.boundingBox.left = System.Math.Min(System.Math.Min(System.Math.Min(System.Math
.Min(points[0].x, points[1].x), points[2].x), points[3].x), this.boundingBox.left
);
this.boundingBox.right = System.Math.Max(System.Math.Max(System.Math.Max(System.Math
.Max(points[0].x, points[1].x), points[2].x), points[3].x), this.boundingBox.right
);
this.boundingBox.top = System.Math.Max(System.Math.Max(System.Math.Max(System.Math
.Max(points[0].y, points[1].y), points[2].y), points[3].y), this.boundingBox.top
);
this.boundingBox.bottom = System.Math.Min(System.Math.Min(System.Math.Min(System.Math
.Min(points[0].y, points[1].y), points[2].y), points[3].y), this.boundingBox.bottom
);
}
foreach (com.brashmonkey.spriter.objects.SpriterBone child in this.childBones)
{
child.calcBoundingBox(boundingBox);
this.boundingBox.set(child.boundingBox);
}
}