当前位置: 首页>>代码示例>>C#>>正文


C# global类代码示例

本文整理汇总了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 {
			}
		}
开发者ID:akonsand,项目名称:Peer.Net,代码行数:26,代码来源:Org.Webrtc.Videoengine.ViESurfaceRenderer.cs

示例2: getHeight

		public virtual   int getHeight(global::alphatab.rendering.EffectBarRenderer renderer)
		{
			unchecked 
			{
				return ((int) (( 17 * renderer.stave.staveGroup.layout.renderer.settings.scale )) );
			}
		}
开发者ID:joshbuhler,项目名称:RSTabExplorer,代码行数:7,代码来源:BeatVibratoEffectInfo.cs

示例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;
 }
开发者ID:maxim-ge,项目名称:gmp-lessons,代码行数:7,代码来源:AfterRuleRemovedEvent.generated.cs

示例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 );
			}
		}
开发者ID:joshbuhler,项目名称:RSTabExplorer,代码行数:7,代码来源:BeatVibratoEffectInfo.cs

示例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();
 }
开发者ID:wezmag,项目名称:Coevery,代码行数:7,代码来源:Reference.cs

示例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");
 }
开发者ID:Inzaghi2012,项目名称:robocode,代码行数:7,代码来源:IVersionManagerBase.generated.cs

示例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;
 }
开发者ID:koush,项目名称:jni4net.n,代码行数:30,代码来源:Stream.generated.cs

示例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)]
}
开发者ID:shannah,项目名称:CN1WindowsPort,代码行数:26,代码来源:DefaultListCellRenderer.cs

示例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));
     }
 }
开发者ID:EamonnACI,项目名称:ACI-SpaceRace,代码行数:7,代码来源:BattleErrorEvent.generated.cs

示例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;
 }
开发者ID:brian-2447,项目名称:jni4net,代码行数:7,代码来源:ProcessEvent.generated.cs

示例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;
 }
开发者ID:markthor,项目名称:robocode,代码行数:7,代码来源:ModuleN.generated.cs

示例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));
            }

        }
开发者ID:brianfeucht,项目名称:Glass.Sitecore.Mapper,代码行数:31,代码来源:SitecoreInfoHandler.cs

示例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;
 }
开发者ID:brian-2447,项目名称:jni4net,代码行数:7,代码来源:StatelessKnowledgeSessionResults.generated.cs

示例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;
 }
开发者ID:MattPuzey,项目名称:Tutorials,代码行数:30,代码来源:ExampleDatabaseDataSet.Designer.cs


注:本文中的global类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。