本文整理汇总了C#中net类的典型用法代码示例。如果您正苦于以下问题:C# net类的具体用法?C# net怎么用?C# net使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
net类属于命名空间,在下文中一共展示了net类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetEventsCompleted
private void GetEventsCompleted(object sender, net.cloudapp.geteventinfo.getAllEventsCompletedEventArgs e)
{
allEvents = new List<net.cloudapp.geteventinfo.Eventas>();
allEvents = e.Result.ToList();
foreach (net.cloudapp.geteventinfo.Eventas event1 in allEvents)
{
addEvent(event1);
}
}
示例2: addEvent
private void addEvent(net.cloudapp.geteventinfo.Eventas event1)
{
MarkerOptions marker = new MarkerOptions();
marker.SetPosition(new LatLng(event1.latitude, event1.longitude));
marker.SetTitle(event1.eventname);
marker.SetSnippet(event1.description);
marker.SetIcon(BitmapDescriptorFactory.FromAsset("f.png"));
gMap.AddMarker(marker);
}
示例3: alertOfManualUpdate
public override void alertOfManualUpdate(net.mcforge.system.updater.Updatable u)
{
DialogResult answer;
using (ManualUpdateReady mur = new Dialogs.ManualUpdateReady(u, getServer().getUpdateService()))
{
answer = mur.ShowDialog();
}
if (answer == DialogResult.No)
getServer().getUpdateService().ignoreUpdate(u);
}
示例4: setInfo
public void setInfo(net.mcforge.iomodel.Player player)
{
this.grpInfo.Text = player.getGroup().name;
this.txtTitle.Text = player.getPrefix();
if (txtTitle.Text.StartsWith("&"))
txtTitle.Text = txtTitle.Text.Substring(2);
this.txtMap.Text = player.getLevel().name;
this.txtIp.Text = player.getIP();
this.txtName.Text = player.getName();
this.txtStatus.Text = "Online"; //lolwut ?
}
示例5: hostLanguage
/// <summary>
/// Get the current host language from the Saxon context
/// </summary>
public static string hostLanguage(net.sf.saxon.expr.XPathContext context)
{
int lang = context.getController().getExecutable().getHostLanguage();
if (lang == net.sf.saxon.Configuration.XQUERY)
{
return "XQuery";
}
else if (lang == net.sf.saxon.Configuration.XSLT)
{
return "XSLT";
}
else if (lang == net.sf.saxon.Configuration.XPATH)
{
return "XPath";
}
else
{
return "unknown";
}
}
示例6: GetSchemas
public IList<Schema> GetSchemas(net.datacowboy.SqlServerDatabaseDocumentationGenerator.Model.Database parent)
{
//get schemas
List<Schema> schemaList = this.queryForSchemas();
//get tables for each schema
if (schemaList != null && schemaList.Count > 0)
{
var tableInspector = new TableInspector(this.peta);
var viewInspector = new ViewInspector(this.peta);
var sprocInspector = new StoredProcedureInspector(this.peta);
var scalarUdfInspector = new ScalarFunctionInspector(this.peta);
var tableUdfInspector = new TableFunctionInspector(this.peta);
Schema schema = null;
for (int i = 0; i < schemaList.Count; i++)
{
schema = schemaList[i];
schema.Tables = tableInspector.GetTables(schema);
schema.Views = viewInspector.GetViews(schema);
schema.StoredProcedures = sprocInspector.GetStoredProcedures(schema);
schema.ScalarFunctions = scalarUdfInspector.GetScalarFunctions(schema);
schema.TableFunctions = tableUdfInspector.GetTableFunctions(schema);
schema.Parent = parent;
}
}
return schemaList;
}
示例7: StartDownload
// Generating method code for startDownload
public virtual void StartDownload(string uri, net.sourceforge.htmlunit.corejs.javascript.Function callback)
{
WObj.startDownload(uri, callback);
}
示例8: DetachEvent
// Generating method code for detachEvent
public virtual void DetachEvent(string type, net.sourceforge.htmlunit.corejs.javascript.Function listener)
{
WObj.detachEvent(type, listener);
}
示例9: Call
// Generating method code for call
public virtual object Call(net.sourceforge.htmlunit.corejs.javascript.Context cx, net.sourceforge.htmlunit.corejs.javascript.Scriptable scope, net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj, System.Object[] args)
{
var arg = WObj.call(cx, scope, thisObj, args);
return ObjectWrapper.CreateWrapper<object>(arg);
}
示例10: SetOnreadystatechange
// Generating method code for setOnreadystatechange
public virtual void SetOnreadystatechange(net.sourceforge.htmlunit.corejs.javascript.Function stateChangeHandler)
{
WObj.setOnreadystatechange(stateChangeHandler);
}
示例11: JsConstructor
// Generating method code for jsConstructor
public virtual void JsConstructor(string type, net.sourceforge.htmlunit.corejs.javascript.ScriptableObject details)
{
WObj.jsConstructor(type, details);
}
示例12: SetEventHandler
// Generating method code for setEventHandler
public virtual void SetEventHandler(string eventName, net.sourceforge.htmlunit.corejs.javascript.Function eventHandler)
{
WObj.setEventHandler(eventName, eventHandler);
}
示例13: verifySignature
/// <summary>
/// Check the type of signature and use the publicKeyDer to verify the
/// signedBlob using the appropriate signature algorithm.
/// </summary>
///
/// <param name="signature"></param>
/// <param name="signedBlob">the SignedBlob with the signed portion to verify.</param>
/// <param name="publicKeyDer"></param>
/// <returns>True if the signature is verified, false if failed.</returns>
/// <exception cref="System.Security.SecurityException">if the signature type is not recognized or ifpublicKeyDer can't be decoded.</exception>
protected internal static bool verifySignature(
net.named_data.jndn.Signature signature, SignedBlob signedBlob,
Blob publicKeyDer)
{
if (signature is Sha256WithRsaSignature) {
if (publicKeyDer.isNull())
return false;
return verifySha256WithRsaSignature(signature.getSignature(),
signedBlob, publicKeyDer);
} else if (signature is Sha256WithEcdsaSignature) {
if (publicKeyDer.isNull())
return false;
return verifySha256WithEcdsaSignature(signature.getSignature(),
signedBlob, publicKeyDer);
} else if (signature is DigestSha256Signature)
return verifyDigestSha256Signature(signature.getSignature(),
signedBlob);
else
// We don't expect this to happen.
throw new SecurityException(
"PolicyManager.verify: Signature type is unknown");
}
示例14: Execute
// Generating method code for execute
public virtual object Execute(NHtmlUnit.InteractivePage page, net.sourceforge.htmlunit.corejs.javascript.Scriptable scope, net.sourceforge.htmlunit.corejs.javascript.Script script)
{
var arg = WObj.execute((com.gargoylesoftware.htmlunit.InteractivePage)page.WrappedObject, scope, script);
return ObjectWrapper.CreateWrapper<object>(arg);
}
示例15: Compile
// Generating method code for compile
public virtual net.sourceforge.htmlunit.corejs.javascript.Script Compile(NHtmlUnit.InteractivePage owningPage, net.sourceforge.htmlunit.corejs.javascript.Scriptable scope, string sourceCode, string sourceName, int startLine)
{
return WObj.compile((com.gargoylesoftware.htmlunit.InteractivePage)owningPage.WrappedObject, scope, sourceCode, sourceName, startLine);
}