本文整理汇总了C#中net类的典型用法代码示例。如果您正苦于以下问题:C# net类的具体用法?C# net怎么用?C# net使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
net类属于命名空间,在下文中一共展示了net类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
}
}
开发者ID:RimvydasJ,项目名称:Application,代码行数:9,代码来源:GoogleMaps.cs
示例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);
}
开发者ID:RimvydasJ,项目名称:Application,代码行数:9,代码来源:GoogleMaps.cs
示例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);
}
开发者ID:B00mX0r,项目名称:MCForge-GUI,代码行数:10,代码来源:MCForgeConsole.cs
示例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 ?
}
开发者ID:B00mX0r,项目名称:MCForge-GUI,代码行数:11,代码来源:PlayerManagerDialog.cs
示例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";
}
}
开发者ID:zhuyue1314,项目名称:xcat,代码行数:24,代码来源:SampleExtensions.cs
示例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;
}
开发者ID:hbulzy,项目名称:SqlServerDatabaseDocumentationGenerator,代码行数:37,代码来源:SchemaInspector.cs
示例7: StartDownload
// Generating method code for startDownload
public virtual void StartDownload(string uri, net.sourceforge.htmlunit.corejs.javascript.Function callback)
{
WObj.startDownload(uri, callback);
}
开发者ID:phsantos,项目名称:NHtmlUnit,代码行数:5,代码来源:HTMLElement.cs
示例8: DetachEvent
// Generating method code for detachEvent
public virtual void DetachEvent(string type, net.sourceforge.htmlunit.corejs.javascript.Function listener)
{
WObj.detachEvent(type, listener);
}
开发者ID:HtmlUnit,项目名称:NHtmlUnit,代码行数:5,代码来源:Window.cs
示例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);
}
开发者ID:HtmlUnit,项目名称:NHtmlUnit,代码行数:6,代码来源:Window.cs
示例10: SetOnreadystatechange
// Generating method code for setOnreadystatechange
public virtual void SetOnreadystatechange(net.sourceforge.htmlunit.corejs.javascript.Function stateChangeHandler)
{
WObj.setOnreadystatechange(stateChangeHandler);
}
开发者ID:JonAnders,项目名称:NHtmlUnit,代码行数:5,代码来源:XMLHTTPRequest.cs
示例11: JsConstructor
// Generating method code for jsConstructor
public virtual void JsConstructor(string type, net.sourceforge.htmlunit.corejs.javascript.ScriptableObject details)
{
WObj.jsConstructor(type, details);
}
开发者ID:HtmlUnit,项目名称:NHtmlUnit,代码行数:5,代码来源:Event.cs
示例12: SetEventHandler
// Generating method code for setEventHandler
public virtual void SetEventHandler(string eventName, net.sourceforge.htmlunit.corejs.javascript.Function eventHandler)
{
WObj.setEventHandler(eventName, eventHandler);
}
开发者ID:phsantos,项目名称:NHtmlUnit,代码行数:5,代码来源:Node.cs
示例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");
}
开发者ID:named-data,项目名称:ndn-dot-net,代码行数:32,代码来源:PolicyManager.cs
示例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);
}
开发者ID:HtmlUnit,项目名称:NHtmlUnit,代码行数:6,代码来源:JavaScriptEngine.cs
示例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);
}
开发者ID:HtmlUnit,项目名称:NHtmlUnit,代码行数:5,代码来源:JavaScriptEngine.cs
示例16: CallFunction
// Generating method code for callFunction
public virtual object CallFunction(NHtmlUnit.Html.HtmlPage htmlPage, net.sourceforge.htmlunit.corejs.javascript.Function javaScriptFunction, net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObject, System.Object[] args, NHtmlUnit.Html.DomNode htmlElement)
{
return WObj.callFunction((com.gargoylesoftware.htmlunit.html.HtmlPage)htmlPage.WrappedObject, javaScriptFunction, thisObject, args, (com.gargoylesoftware.htmlunit.html.DomNode)htmlElement.WrappedObject);
}
开发者ID:DrewDahl,项目名称:NHtmlUnit,代码行数:5,代码来源:JavaScriptEngine.cs
示例17: FrmObjectsWithoutDescription
public FrmObjectsWithoutDescription(net.datacowboy.SqlServerDatabaseDocumentationGenerator.Model.Database database)
{
InitializeComponent();
this.database = database;
}
开发者ID:hbulzy,项目名称:SqlServerDatabaseDocumentationGenerator,代码行数:6,代码来源:FrmObjectsWithoutDescription.cs
示例18: StaticNodeList
public StaticNodeList(java.util.List elements, net.sourceforge.htmlunit.corejs.javascript.ScriptableObject parentScope)
: this(new com.gargoylesoftware.htmlunit.javascript.host.StaticNodeList(elements, parentScope))
{
}
开发者ID:phsantos,项目名称:NHtmlUnit,代码行数:4,代码来源:StaticNodeList.cs
示例19: GetCurrentPosition
// Generating method code for getCurrentPosition
public virtual void GetCurrentPosition(net.sourceforge.htmlunit.corejs.javascript.Function successCallback, object errorCallback, object options)
{
WObj.getCurrentPosition(successCallback, errorCallback, options);
}
开发者ID:phsantos,项目名称:NHtmlUnit,代码行数:5,代码来源:Geolocation.cs
示例20: AttachEvent
// Generating method code for attachEvent
public virtual bool AttachEvent(string type, net.sourceforge.htmlunit.corejs.javascript.Function listener)
{
return WObj.attachEvent(type, listener);
}
开发者ID:HtmlUnit,项目名称:NHtmlUnit,代码行数:5,代码来源:Window.cs
注:本文中的net类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论