C# (CSharp) global Code Examples

C# (CSharp) global - 30 examples found. These are the top rated real world C# (CSharp) examples of global extracted from open source projects. You can rate examples to help us improve the quality of examples
		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 {
			}
		}
	public virtual   int getHeight(global::alphatab.rendering.EffectBarRenderer renderer)
	{
		unchecked 
		{
			return ((int) (( 17 * renderer.stave.staveGroup.layout.renderer.settings.scale )) );
		}
	}
 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;
 }
		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 {
			}
		}
	public virtual   bool shouldCreateGlyph(global::alphatab.rendering.EffectBarRenderer renderer, global::alphatab.model.Beat beat)
	{
		unchecked 
		{
			return ( beat.vibrato != global::alphatab.model.VibratoType.None );
		}
	}
Example #6
0
 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();
 }
 private static void InitJNI(global::net.sf.jni4net.jni.JNIEnv @__env, java.lang.Class @__class) {
     global::net.sf.robocode.manager.@__IVersionManagerBase.staticClass = @__class;
     global::net.sf.robocode.manager.@__IVersionManagerBase.j4n_getVersion0 = @__env.GetMethodID(global::net.sf.robocode.manager.@__IVersionManagerBase.staticClass, "getVersion", "()Ljava/lang/String;");
     global::net.sf.robocode.manager.@__IVersionManagerBase.j4n_getVersionAsInt1 = @__env.GetMethodID(global::net.sf.robocode.manager.@__IVersionManagerBase.staticClass, "getVersionAsInt", "()I");
     global::net.sf.robocode.manager.@__IVersionManagerBase.j4n_getVersionN2 = @__env.GetMethodID(global::net.sf.robocode.manager.@__IVersionManagerBase.staticClass, "getVersionN", "()Ljava/lang/String;");
     global::net.sf.robocode.manager.@__IVersionManagerBase.j4n_isLastRunVersionChanged3 = @__env.GetMethodID(global::net.sf.robocode.manager.@__IVersionManagerBase.staticClass, "isLastRunVersionChanged", "()Z");
 }
Example #8
0
 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;
 }
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).@this(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)]
}
 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));
     }
 }
 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;
 }
Example #12
0
 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;
 }
        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));
            }

        }
 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;
 }
 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;
 }
public virtual void setValue(global::java.util.Date n1){
//XMLVM_BEGIN_WRAPPER[com.codename1.ui.spinner.SpinnerDateModel: void setValue(java.util.Date)]
    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._nElement _r4;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nElement _r5;
    global::System.Object _r5_o = null;
    global::org.xmlvm._nElement _r6;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    global::System.Object _r7_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r6_o = this;
    _r7_o = n1;
    _r0.l = ((global::java.util.Date) _r7_o).getTime();
    _r2.l = ((global::java.util.Date) _r7_o).getTime();
    _r4.l = 86400000L;
    _r2.l = _r2.l % _r4.l;
    _r0.l = _r0.l - _r2.l;
    _r2.l = 43200000L;
    _r0.l = _r0.l + _r2.l;
    ((global::com.codename1.ui.spinner.SpinnerDateModel) _r6_o)._fcurrentValue = _r0.l;
    return;
//XMLVM_END_WRAPPER[com.codename1.ui.spinner.SpinnerDateModel: void setValue(java.util.Date)]
}
public void @this(global::org.xmlvm._nArrayAdapter<sbyte> n1, int n2, int n3){
//XMLVM_BEGIN_WRAPPER[java.io.ByteArrayInputStream: void <init>(byte[], int, int)]
    global::org.xmlvm._nElement _r0;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r2_o = null;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nElement _r4;
    global::org.xmlvm._nElement _r5;
    _r2_o = this;
    _r3_o = n1;
    _r4.i = n2;
    _r5.i = n3;
    ((global::java.io.InputStream) _r2_o).@this();
    ((global::java.io.ByteArrayInputStream) _r2_o)._fbuf = (global::org.xmlvm._nArrayAdapter<sbyte>) _r3_o;
    ((global::java.io.ByteArrayInputStream) _r2_o)._fpos = _r4.i;
    ((global::java.io.ByteArrayInputStream) _r2_o)._fmark = _r4.i;
    _r0.i = _r4.i + _r5.i;
    _r1.i = ((global::org.xmlvm._nIArray) _r3_o).Length;
    if (_r0.i <= _r1.i) goto label18;
    _r0.i = ((global::org.xmlvm._nIArray) _r3_o).Length;
    label15:;
    ((global::java.io.ByteArrayInputStream) _r2_o)._fcount = _r0.i;
    return;
    label18:;
    _r0.i = _r4.i + _r5.i;
    goto label15;
//XMLVM_END_WRAPPER[java.io.ByteArrayInputStream: void <init>(byte[], int, int)]
}
 public BattleSpecification(int par0, global::robocode.control.BattlefieldSpecification par1, robocode.control.RobotSpecification[] par2) : 
         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, 16)){
     @__env.NewObject(global::robocode.control.BattleSpecification.staticClass, global::robocode.control.BattleSpecification.@__ctorBattleSpecification8, this, global::net.sf.jni4net.utils.Convertor.ParPrimC2J(par0), global::net.sf.jni4net.utils.Convertor.ParStrongCp2J(par1), global::net.sf.jni4net.utils.Convertor.ParArrayStrongCp2J(@__env, par2));
     }
 }
Example #19
0
	public static  new object __hx_create(global::haxe.root.Array arr)
	{
		unchecked 
		{
			return new global::haxe.Log();
		}
	}
Example #20
0
 public TeamFindMemberAdapter(Context context,global::Android.Support.V4.App.Fragment fragment,List<Tap5050PotentialTeamMemberInfo> list,EventCard card)
 {
     nn_fragment = fragment;
     nn_context = context;
     nn_list = list;
     nn_card = card;
 }
 public global::Windows.UI.Xaml.Markup.IXamlType GetXamlTypeByType(global::System.Type type)
 {
     global::Windows.UI.Xaml.Markup.IXamlType xamlType;
     if (_xamlTypeCacheByType.TryGetValue(type, out xamlType))
     {
         return xamlType;
     }
     int typeIndex = LookupTypeIndexByType(type);
     if(typeIndex != -1)
     {
         xamlType = CreateXamlType(typeIndex);
     }
     var userXamlType = xamlType as global::SpartaHack.SpartaHack_XamlTypeInfo.XamlUserType;
     if(xamlType == null || (userXamlType != null && userXamlType.IsReturnTypeStub && !userXamlType.IsLocalType))
     {
         global::Windows.UI.Xaml.Markup.IXamlType libXamlType = CheckOtherMetadataProvidersForType(type);
         if (libXamlType != null)
         {
             if(libXamlType.IsConstructible || xamlType == null)
             {
                 xamlType = libXamlType;
             }
         }
     }
     if (xamlType != null)
     {
         _xamlTypeCacheByName.Add(xamlType.FullName, xamlType);
         _xamlTypeCacheByType.Add(xamlType.UnderlyingType, xamlType);
     }
     return xamlType;
 }
 private static void InitJNI(global::net.sf.jni4net.jni.JNIEnv @__env, java.lang.Class @__class) {
     global::net.sf.robocode.security.HiddenAccess.staticClass = @__class;
     global::net.sf.robocode.security.HiddenAccess.j4n_dispatch0 = @__env.GetStaticMethodID(global::net.sf.robocode.security.HiddenAccess.staticClass, "dispatch", "(Lrobocode/Event;Lrobocode/robotinterfaces/IBasicRobot;Lnet/sf/robocode/peer/IRob" +
             "otStatics;Ljava/awt/Graphics2D;)V");
     global::net.sf.robocode.security.HiddenAccess.j4n_init1 = @__env.GetStaticMethodID(global::net.sf.robocode.security.HiddenAccess.staticClass, "init", "()V");
     global::net.sf.robocode.security.HiddenAccess.j4n_cleanup2 = @__env.GetStaticMethodID(global::net.sf.robocode.security.HiddenAccess.staticClass, "cleanup", "()V");
     global::net.sf.robocode.security.HiddenAccess.j4n_update3 = @__env.GetStaticMethodID(global::net.sf.robocode.security.HiddenAccess.staticClass, "update", "(Lrobocode/Bullet;DDLjava/lang/String;Z)V");
     global::net.sf.robocode.security.HiddenAccess.j4n_initContainer4 = @__env.GetStaticMethodID(global::net.sf.robocode.security.HiddenAccess.staticClass, "initContainer", "()V");
     global::net.sf.robocode.security.HiddenAccess.j4n_robocodeMain5 = @__env.GetStaticMethodID(global::net.sf.robocode.security.HiddenAccess.staticClass, "robocodeMain", "([Ljava/lang/String;)V");
     global::net.sf.robocode.security.HiddenAccess.j4n_isCriticalEvent6 = @__env.GetStaticMethodID(global::net.sf.robocode.security.HiddenAccess.staticClass, "isCriticalEvent", "(Lrobocode/Event;)Z");
     global::net.sf.robocode.security.HiddenAccess.j4n_setEventTime7 = @__env.GetStaticMethodID(global::net.sf.robocode.security.HiddenAccess.staticClass, "setEventTime", "(Lrobocode/Event;J)V");
     global::net.sf.robocode.security.HiddenAccess.j4n_setEventPriority8 = @__env.GetStaticMethodID(global::net.sf.robocode.security.HiddenAccess.staticClass, "setEventPriority", "(Lrobocode/Event;I)V");
     global::net.sf.robocode.security.HiddenAccess.j4n_setDefaultPriority9 = @__env.GetStaticMethodID(global::net.sf.robocode.security.HiddenAccess.staticClass, "setDefaultPriority", "(Lrobocode/Event;)V");
     global::net.sf.robocode.security.HiddenAccess.j4n_getSerializationType10 = @__env.GetStaticMethodID(global::net.sf.robocode.security.HiddenAccess.staticClass, "getSerializationType", "(Lrobocode/Event;)B");
     global::net.sf.robocode.security.HiddenAccess.j4n_createSpecification11 = @__env.GetStaticMethodID(global::net.sf.robocode.security.HiddenAccess.staticClass, "createSpecification", "(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/la" +
             "ng/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Strin" +
             "g;)Lrobocode/control/RobotSpecification;");
     global::net.sf.robocode.security.HiddenAccess.j4n_getFileSpecification12 = @__env.GetStaticMethodID(global::net.sf.robocode.security.HiddenAccess.staticClass, "getFileSpecification", "(Lrobocode/control/RobotSpecification;)Ljava/lang/Object;");
     global::net.sf.robocode.security.HiddenAccess.j4n_getRobotTeamName13 = @__env.GetStaticMethodID(global::net.sf.robocode.security.HiddenAccess.staticClass, "getRobotTeamName", "(Lrobocode/control/RobotSpecification;)Ljava/lang/String;");
     global::net.sf.robocode.security.HiddenAccess.j4n_setTeamId14 = @__env.GetStaticMethodID(global::net.sf.robocode.security.HiddenAccess.staticClass, "setTeamId", "(Lrobocode/control/RobotSpecification;Ljava/lang/String;)V");
     global::net.sf.robocode.security.HiddenAccess.j4n_createStatus15 = @__env.GetStaticMethodID(global::net.sf.robocode.security.HiddenAccess.staticClass, "createStatus", "(DDDDDDDDDDDDIIIIJ)Lrobocode/RobotStatus;");
     global::net.sf.robocode.security.HiddenAccess.j4n_createRules16 = @__env.GetStaticMethodID(global::net.sf.robocode.security.HiddenAccess.staticClass, "createRules", "(IIIDJZI)Lrobocode/BattleRules;");
     global::net.sf.robocode.security.HiddenAccess.j4n_isSafeThread17 = @__env.GetStaticMethodID(global::net.sf.robocode.security.HiddenAccess.staticClass, "isSafeThread", "()Z");
     global::net.sf.robocode.security.HiddenAccess.j4n_initContainerForRobotEngine18 = @__env.GetStaticMethodID(global::net.sf.robocode.security.HiddenAccess.staticClass, "initContainerForRobotEngine", "(Ljava/io/File;Lrobocode/control/events/IBattleListener;)V");
     global::net.sf.robocode.security.HiddenAccess.j4n__ctorHiddenAccess19 = @__env.GetMethodID(global::net.sf.robocode.security.HiddenAccess.staticClass, "<init>", "()V");
 }
	public static  new object __hx_create(global::haxe.root.Array arr)
	{
		unchecked 
		{
			return new global::alphatab.rendering.effects.BeatVibratoEffectInfo();
		}
	}
Example #24
0
public override global::System.Object evaluate(global::org.w3c.dom.Node n1, int n2, int n3){
//XMLVM_BEGIN_WRAPPER[gnu.xml.xpath.EqualityExpr: java.lang.Object evaluate(org.w3c.dom.Node, int, int)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r2_o = null;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nElement _r4;
    global::org.xmlvm._nElement _r5;
    _r2_o = this;
    _r3_o = n1;
    _r4.i = n2;
    _r5.i = n3;
    _r0.i = ((global::gnu.xml.xpath.EqualityExpr) _r2_o).evaluateImpl((global::org.w3c.dom.Node) _r3_o, (int) _r4.i, (int) _r5.i) ? 1 : 0;
    _r1.i = ((global::gnu.xml.xpath.EqualityExpr) _r2_o)._finvert ? 1 : 0;
    if (_r1.i == 0) goto label16;
    if (_r0.i == 0) goto label13;
    _r0_o = global::java.lang.Boolean._fFALSE;
    label12:;
    return (global::java.lang.Object) _r0_o;
    label13:;
    _r0_o = global::java.lang.Boolean._fTRUE;
    goto label12;
    label16:;
    if (_r0.i == 0) goto label21;
    _r0_o = global::java.lang.Boolean._fTRUE;
    goto label12;
    label21:;
    _r0_o = global::java.lang.Boolean._fFALSE;
    goto label12;
//XMLVM_END_WRAPPER[gnu.xml.xpath.EqualityExpr: java.lang.Object evaluate(org.w3c.dom.Node, int, int)]
}
	public virtual   bool canExpand(global::alphatab.rendering.EffectBarRenderer renderer, global::alphatab.model.Beat @from, global::alphatab.model.Beat to)
	{
		unchecked 
		{
			return true;
		}
	}
	public    GroupedBarRenderer(global::alphatab.model.Bar bar) : base(((global::haxe.lang.EmptyObject) (global::haxe.lang.EmptyObject.EMPTY) ))
	{
		unchecked 
		{
			global::alphatab.rendering.GroupedBarRenderer.__hx_ctor_alphatab_rendering_GroupedBarRenderer(this, bar);
		}
	}
 private void @__BuildControlTree(global::SharePointProject2.VisualWebPart1.VisualWebPart1 @__ctrl)
 {
     global::System.Web.UI.WebControls.Label @__ctrl1;
     @__ctrl1 = this.@__BuildControlLabel1();
     System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
     @__parser.AddParsedSubObject(@__ctrl1);
 }
	public static  new object __hx_create(global::haxe.root.Array arr)
	{
		unchecked 
		{
			return new global::alphatab.rendering.GroupedBarRenderer(((global::alphatab.model.Bar) (arr[0]) ));
		}
	}
public void @this(global::com.codename1.ui.layouts.GroupLayout n1, global::com.codename1.ui.Component n2, global::com.codename1.ui.Component n3, int n4, bool n5){
//XMLVM_BEGIN_WRAPPER[com.codename1.ui.layouts.GroupLayout$PaddingSpring: void <init>(com.codename1.ui.layouts.GroupLayout, com.codename1.ui.Component, com.codename1.ui.Component, int, boolean)]
    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._nElement _r4;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nElement _r5;
    global::System.Object _r5_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r0_o = this;
    _r1_o = n1;
    _r2_o = n2;
    _r3_o = n3;
    _r4.i = n4;
    _r5.i = n5 ? 1 : 0;
    ((global::com.codename1.ui.layouts.GroupLayout_2PaddingSpring) _r0_o)._fthis_20 = (global::com.codename1.ui.layouts.GroupLayout) _r1_o;
    ((global::com.codename1.ui.layouts.GroupLayout_2Spring) _r0_o).@this((global::com.codename1.ui.layouts.GroupLayout) _r1_o);
    ((global::com.codename1.ui.layouts.GroupLayout_2PaddingSpring) _r0_o)._fsource = (global::com.codename1.ui.Component) _r2_o;
    ((global::com.codename1.ui.layouts.GroupLayout_2PaddingSpring) _r0_o)._ftarget = (global::com.codename1.ui.Component) _r3_o;
    ((global::com.codename1.ui.layouts.GroupLayout_2PaddingSpring) _r0_o)._ftype = _r4.i;
    ((global::com.codename1.ui.layouts.GroupLayout_2PaddingSpring) _r0_o)._fcanGrow = 0!=_r5.i;
    return;
//XMLVM_END_WRAPPER[com.codename1.ui.layouts.GroupLayout$PaddingSpring: void <init>(com.codename1.ui.layouts.GroupLayout, com.codename1.ui.Component, com.codename1.ui.Component, int, boolean)]
}
		public unsafe GenericLoaderFactory (global::Android.Content.Context 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 (GenericLoaderFactory)) {
					SetHandle (
							global::Android.Runtime.JNIEnv.StartCreateInstance (GetType (), "(Landroid/content/Context;)V", __args),
							JniHandleOwnership.TransferLocalRef);
					global::Android.Runtime.JNIEnv.FinishCreateInstance (Handle, "(Landroid/content/Context;)V", __args);
					return;
				}

				if (id_ctor_Landroid_content_Context_ == IntPtr.Zero)
					id_ctor_Landroid_content_Context_ = JNIEnv.GetMethodID (class_ref, "<init>", "(Landroid/content/Context;)V");
				SetHandle (
						global::Android.Runtime.JNIEnv.StartCreateInstance (class_ref, id_ctor_Landroid_content_Context_, __args),
						JniHandleOwnership.TransferLocalRef);
				JNIEnv.FinishCreateInstance (Handle, class_ref, id_ctor_Landroid_content_Context_, __args);
			} finally {
			}
		}