本文整理汇总了C#中global类的典型用法代码示例。如果您正苦于以下问题:C# global类的具体用法?C# global怎么用?C# global使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
global类属于命名空间,在下文中一共展示了global类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ViESurfaceRenderer
public unsafe ViESurfaceRenderer (global::Android.Views.SurfaceView p0)
: base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
{
if (Handle != IntPtr.Zero)
return;
try {
JValue* __args = stackalloc JValue [1];
__args [0] = new JValue (p0);
if (GetType () != typeof (ViESurfaceRenderer)) {
SetHandle (
global::Android.Runtime.JNIEnv.StartCreateInstance (GetType (), "(Landroid/view/SurfaceView;)V", __args),
JniHandleOwnership.TransferLocalRef);
global::Android.Runtime.JNIEnv.FinishCreateInstance (Handle, "(Landroid/view/SurfaceView;)V", __args);
return;
}
if (id_ctor_Landroid_view_SurfaceView_ == IntPtr.Zero)
id_ctor_Landroid_view_SurfaceView_ = JNIEnv.GetMethodID (class_ref, "<init>", "(Landroid/view/SurfaceView;)V");
SetHandle (
global::Android.Runtime.JNIEnv.StartCreateInstance (class_ref, id_ctor_Landroid_view_SurfaceView_, __args),
JniHandleOwnership.TransferLocalRef);
JNIEnv.FinishCreateInstance (Handle, class_ref, id_ctor_Landroid_view_SurfaceView_, __args);
} finally {
}
}
示例2: getHeight
public virtual int getHeight(global::alphatab.rendering.EffectBarRenderer renderer)
{
unchecked
{
return ((int) (( 17 * renderer.stave.staveGroup.layout.renderer.settings.scale )) );
}
}
示例3: typeof
private static global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod> @__Init(global::net.sf.jni4net.jni.JNIEnv @__env, global::java.lang.Class @__class) {
global::System.Type @__type = typeof(__AfterRuleRemovedEvent);
global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod> methods = new global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod>();
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getKnowledgeBase", "getKnowledgeBase0", "()Lorg/drools/KnowledgeBase;"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getRule", "getRule1", "()Lorg/drools/definition/rule/Rule;"));
return methods;
}
示例4: BitmapDrawableResource
public unsafe BitmapDrawableResource (global::Android.Graphics.Drawables.BitmapDrawable p0, global::Com.Bumptech.Glide.Load.Engine.Bitmap_recycle.IBitmapPool p1)
: base (IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
{
if (Handle != IntPtr.Zero)
return;
try {
JValue* __args = stackalloc JValue [2];
__args [0] = new JValue (p0);
__args [1] = new JValue (p1);
if (GetType () != typeof (BitmapDrawableResource)) {
SetHandle (
global::Android.Runtime.JNIEnv.StartCreateInstance (GetType (), "(Landroid/graphics/drawable/BitmapDrawable;Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;)V", __args),
JniHandleOwnership.TransferLocalRef);
global::Android.Runtime.JNIEnv.FinishCreateInstance (Handle, "(Landroid/graphics/drawable/BitmapDrawable;Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;)V", __args);
return;
}
if (id_ctor_Landroid_graphics_drawable_BitmapDrawable_Lcom_bumptech_glide_load_engine_bitmap_recycle_BitmapPool_ == IntPtr.Zero)
id_ctor_Landroid_graphics_drawable_BitmapDrawable_Lcom_bumptech_glide_load_engine_bitmap_recycle_BitmapPool_ = JNIEnv.GetMethodID (class_ref, "<init>", "(Landroid/graphics/drawable/BitmapDrawable;Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;)V");
SetHandle (
global::Android.Runtime.JNIEnv.StartCreateInstance (class_ref, id_ctor_Landroid_graphics_drawable_BitmapDrawable_Lcom_bumptech_glide_load_engine_bitmap_recycle_BitmapPool_, __args),
JniHandleOwnership.TransferLocalRef);
JNIEnv.FinishCreateInstance (Handle, class_ref, id_ctor_Landroid_graphics_drawable_BitmapDrawable_Lcom_bumptech_glide_load_engine_bitmap_recycle_BitmapPool_, __args);
} finally {
}
}
开发者ID:thanhdatbkhn,项目名称:GlideXamarinBinding,代码行数:27,代码来源:Com.Bumptech.Glide.Load.Resource.Bitmap.BitmapDrawableResource.cs
示例5: shouldCreateGlyph
public virtual bool shouldCreateGlyph(global::alphatab.rendering.EffectBarRenderer renderer, global::alphatab.model.Beat beat)
{
unchecked
{
return ( beat.vibrato != global::alphatab.model.VibratoType.None );
}
}
示例6: GalleryFeedContext
public GalleryFeedContext(global::System.Uri serviceRoot) :
base(serviceRoot)
{
this.ResolveName = new global::System.Func<global::System.Type, string>(this.ResolveNameFromType);
this.ResolveType = new global::System.Func<string, global::System.Type>(this.ResolveTypeFromName);
this.OnContextCreated();
}
示例7: InitJNI
private static void InitJNI(global::net.sf.jni4net.jni.JNIEnv @__env, java.lang.Class @__class) {
global::[email protected]__IVersionManagerBase.staticClass = @__class;
global::[email protected]__IVersionManagerBase.j4n_getVersion0 = @__env.GetMethodID(global::[email protected]__IVersionManagerBase.staticClass, "getVersion", "()Ljava/lang/String;");
global::[email protected]__IVersionManagerBase.j4n_getVersionAsInt1 = @__env.GetMethodID(global::[email protected]__IVersionManagerBase.staticClass, "getVersionAsInt", "()I");
global::[email protected]__IVersionManagerBase.j4n_getVersionN2 = @__env.GetMethodID(global::[email protected]__IVersionManagerBase.staticClass, "getVersionN", "()Ljava/lang/String;");
global::[email protected]__IVersionManagerBase.j4n_isLastRunVersionChanged3 = @__env.GetMethodID(global::[email protected]__IVersionManagerBase.staticClass, "isLastRunVersionChanged", "()Z");
}
示例8: typeof
private static global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod> @__Init(global::net.sf.jni4net.jni.JNIEnv @__env, global::java.lang.Class @__class) {
global::System.Type @__type = typeof(__Stream);
global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod> methods = new global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod>();
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "Dispose", "Dispose0", "()V"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getCanRead", "CanRead1", "()Z"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getCanSeek", "CanSeek2", "()Z"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getCanTimeout", "CanTimeout3", "()Z"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getCanWrite", "CanWrite4", "()Z"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getLength", "Length5", "()J"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getPosition", "Position6", "()J"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setPosition", "Position7", "(J)V"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getReadTimeout", "ReadTimeout8", "()I"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setReadTimeout", "ReadTimeout9", "(I)V"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getWriteTimeout", "WriteTimeout10", "()I"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setWriteTimeout", "WriteTimeout11", "(I)V"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "Close", "Close12", "()V"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "Flush", "Flush13", "()V"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "BeginRead", "BeginRead14", "([BIILsystem/AsyncCallback;Lsystem/Object;)Lsystem/IAsyncResult;"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "EndRead", "EndRead15", "(Lsystem/IAsyncResult;)I"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "BeginWrite", "BeginWrite16", "([BIILsystem/AsyncCallback;Lsystem/Object;)Lsystem/IAsyncResult;"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "EndWrite", "EndWrite17", "(Lsystem/IAsyncResult;)V"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "Seek", "Seek18", "(JLsystem/Enum;)J"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "SetLength", "SetLength19", "(J)V"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "Read", "Read20", "([BII)I"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "ReadByte", "ReadByte21", "()I"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "Write", "Write22", "([BII)V"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "WriteByte", "WriteByte23", "(B)V"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "Synchronized", "Synchronized24", "(Lsystem/io/Stream;)Lsystem/io/Stream;"));
return methods;
}
示例9: initLaf
public override void initLaf(global::com.codename1.ui.plaf.UIManager n1){
//XMLVM_BEGIN_WRAPPER[com.codename1.ui.list.DefaultListCellRenderer: void initLaf(com.codename1.ui.plaf.UIManager)]
global::org.xmlvm._nElement _r0;
global::System.Object _r0_o = null;
global::org.xmlvm._nElement _r1;
global::System.Object _r1_o = null;
global::org.xmlvm._nElement _r2;
global::System.Object _r2_o = null;
global::org.xmlvm._nElement _r3;
global::System.Object _r3_o = null;
global::org.xmlvm._nExceptionAdapter _ex = null;
_r2_o = this;
_r3_o = n1;
base.initLaf((global::com.codename1.ui.plaf.UIManager) _r3_o);
_r0.i = ((global::com.codename1.ui.list.DefaultListCellRenderer) _r2_o)._fshowNumbersForce ? 1 : 0;
if (_r0.i != 0) goto label17;
// Value=rendererShowsNumbersBool
_r0_o = new global::java.lang.String();
((global::java.lang.String)_r0_o)[email protected](new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)114)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 83)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 119)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 78)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 109)), unchecked((char) unchecked((uint) 98)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 66)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 108))}));
_r1.i = global::com.codename1.ui.list.DefaultListCellRenderer._fshowNumbersDefault ? 1 : 0;
_r0.i = ((global::com.codename1.ui.plaf.UIManager) _r3_o).isThemeConstant((global::java.lang.String) _r0_o, 0!=_r1.i) ? 1 : 0;
((global::com.codename1.ui.list.DefaultListCellRenderer) _r2_o)._fshowNumbers = 0!=_r0.i;
label17:;
return;
//XMLVM_END_WRAPPER[com.codename1.ui.list.DefaultListCellRenderer: void initLaf(com.codename1.ui.plaf.UIManager)]
}
示例10: BattleErrorEvent
public BattleErrorEvent(global::java.lang.String par0) :
base(((global::net.sf.jni4net.jni.JNIEnv)(null))) {
global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.ThreadEnv;
using(new global::net.sf.jni4net.jni.LocalFrame(@__env, 12)){
@__env.NewObject(global::robocode.control.events.BattleErrorEvent.staticClass, global::robocode.control.events.BattleErrorEvent.j4n__ctorBattleErrorEvent1, this, global::net.sf.jni4net.utils.Convertor.ParStrongCp2J(par0));
}
}
示例11: typeof
private static global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod> @__Init(global::net.sf.jni4net.jni.JNIEnv @__env, global::java.lang.Class @__class) {
global::System.Type @__type = typeof(__ProcessEvent);
global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod> methods = new global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod>();
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getKnowledgeRuntime", "getKnowledgeRuntime0", "()Lorg/drools/runtime/KnowledgeRuntime;"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getProcessInstance", "getProcessInstance1", "()Lorg/drools/runtime/process/ProcessInstance;"));
return methods;
}
示例12: typeof
private static global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod> @__Init(global::net.sf.jni4net.jni.JNIEnv @__env, global::java.lang.Class @__class) {
global::System.Type @__type = typeof(__ModuleN);
global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod> methods = new global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod>();
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "InitN", "InitN0", "()V"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "__ctorModuleN0", "__ctorModuleN0", "(Lnet/sf/jni4net/inj/IClrProxy;)V"));
return methods;
}
示例13: SetValue
public override void SetValue(global::Sitecore.Data.Items.Item item, object value, ISitecoreService service)
{
switch (InfoType)
{
case SitecoreInfoType.DisplayName:
if (value is string || value == null)
item[Settings.DisplayNameFieldName] = (value ?? string.Empty).ToString();
else
throw new NotSupportedException("Can't set DisplayName. Value is not of type System.String");
break;
case SitecoreInfoType.Name:
if (value is string || value == null)
{
//if the name is null or empty nothing should happen
if ((value ?? string.Empty).ToString().IsNullOrEmpty()) return;
if (item.Name != value.ToString())
{
item.Name = value.ToString();
}
}
else
throw new NotSupportedException("Can't set Name. Value is not of type System.String");
break;
default:
throw new NotSupportedException("You can not save SitecoreInfo {0}".Formatted(InfoType));
}
}
示例14: typeof
private static global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod> @__Init(global::net.sf.jni4net.jni.JNIEnv @__env, global::java.lang.Class @__class) {
global::System.Type @__type = typeof(__StatelessKnowledgeSessionResults);
global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod> methods = new global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod>();
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getValue", "getValue0", "(Ljava/lang/String;)Ljava/lang/Object;"));
methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getIdentifiers", "getIdentifiers1", "()Ljava/util/Collection;"));
return methods;
}
示例15: ExampleDatabaseDataSet
protected ExampleDatabaseDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context, false) {
if ((this.IsBinarySerialized(info, context) == true)) {
this.InitVars(false);
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
this.Tables.CollectionChanged += schemaChangedHandler1;
this.Relations.CollectionChanged += schemaChangedHandler1;
return;
}
string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
global::System.Data.DataSet ds = new global::System.Data.DataSet();
ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
this.Locale = ds.Locale;
this.CaseSensitive = ds.CaseSensitive;
this.EnforceConstraints = ds.EnforceConstraints;
this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
this.InitVars();
}
else {
this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
}
this.GetSerializationData(info, context);
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
base.Tables.CollectionChanged += schemaChangedHandler;
this.Relations.CollectionChanged += schemaChangedHandler;
}