public CustomFunction(string name, System.Func<double,double> func, bool enableSymbolicationTimeEvaluation)
 {
     this.func1d = func;
     this.enableSymbolicationTimeEvaluation = enableSymbolicationTimeEvaluation;
     this.paramCount = 1;
     this.name = name;
 }
示例#2
0
 /// Repeatable perform an action each frame for x amount of seconds until a condition is met.
 /// Takes the action to perform, the condition for completion and the maximum amount of time each frame
 /// to spend performing the action
 public TimedTick( System.Action action, System.Func<bool> stopCondition, float time = .1f )
 {
     start_ = Time.realtimeSinceStartup;
     action_ = action;
     stopCondition_ = stopCondition;
     maxTime_ = time;
 }
 public CustomFunction(string name, int paramCount, System.Func<object[],double> func, bool enableSymbolicationTimeEvaluation)
 {
     this.funcmo = func;
     this.enableSymbolicationTimeEvaluation = enableSymbolicationTimeEvaluation;
     this.paramCount = paramCount;
     this.name = name;
 }
示例#4
0
 public TreeRewriter( ITreeNodeStream input, RecognizerSharedState state )
     : base( input, state )
 {
     originalAdaptor = input.TreeAdaptor;
     originalTokenStream = input.TokenStream;
     topdown_func = () => Topdown();
     bottomup_func = () => Bottomup();
 }
示例#5
0
        public SphereEmitter(IParameters parameters)
            : base(parameters)
        {
            _particlesToEmit = new SoAData(200);

            _Radius = Parameters.GetParameterDelegate<float>("Radius");
            _EmitRingOnly = Parameters.GetParameterDelegate<bool>("EmitRingOnly");
        }
 void Start()
 {
     var lProperty = component.GetType().GetProperty(memberName);
     if (lProperty.PropertyType == typeof(string))
         getTextFunc = (System.Func<string>)System.Delegate.CreateDelegate(
              typeof(System.Func<string>), component, lProperty.GetGetMethod());
     else
         getTextFunc = () => lProperty.GetValue(component, null).ToString();
 }
示例#7
0
 public AssignedTask(PartyMember member, AssignedTaskTypes type, System.Func<bool> check, System.Action mainAction)
 {
     taskType=type;
     preconditionCheck=check;
     actionToPerform=mainAction;
     performingMember=member;
     startTaskAction=null;
     endTaskAction=null;
 }
示例#8
0
        public void SetParams(float radius, System.Func<GameObject, bool> checkTrigger, System.Action callBack)
        {
            _checkTrigger = checkTrigger;
            _callBack = callBack;
            _radius = radius;

            SphereCollider co = gameObject.AddComponent<SphereCollider>();
            co.radius = radius;
            co.isTrigger = true;
        }
示例#9
0
    public AssignedTask(PartyMember member, AssignedTaskTypes type, System.Func<bool> check
	, System.Action mainAction, System.Action startAction, System.Action endAction)
    {
        taskType=type;
        preconditionCheck=check;
        actionToPerform=mainAction;
        performingMember=member;
        if (startAction!=null) startTaskAction=startAction;
        else startTaskAction=null;
        if (endAction!=null) endTaskAction=endAction;
        else endTaskAction=null;
    }
示例#10
0
        public GUIButton(GameObject obj, System.Func<bool> enableChecker)
        {
            m_button = obj.GetComponent<Button>();
            m_lable = new GUILable(obj.transform.Find("Text").gameObject);
            m_enableChecker = enableChecker;

            Transform iconTrans = obj.transform.Find("Icon");
            if (iconTrans != null)
            {
                RawImage rawImage = iconTrans.GetComponent<RawImage>();
                m_icon = new GUIImageStatic(iconTrans.gameObject, rawImage.texture);
            }
        }
示例#11
0
		public void Construct(params object[] args)
		{
			#if DEBUG
			Debug.Assert(!args.IsNullOrEmpty());
			#endif // DEBUG

			bkgProc = args[0] as System.Func<object, object>;
			param = 1 < args.Length ? args[1] : null;
			result = null;

			#if DEBUG
			Debug.Assert(null != bkgProc);
			#endif // DEBUG
		}
    ///////////////////////////////////////////////////////////////////////////////
    // functions
    ///////////////////////////////////////////////////////////////////////////////
    // ------------------------------------------------------------------
    // Desc:
    // ------------------------------------------------------------------
    public void Start( bool _rewind = false, float _duration = -1.0f )
    {
        duration = (_duration <= 0.0f) ? data.length : _duration;

        callback = data.useEaseCurve ? exEase.GetEaseFunc(data.easeCurveType) : data.animationCurve.Evaluate;
        lastTime = Time.time;
        if ( _rewind || started == false ) {
            if ( speed < 0.0f )
                time = duration;
            else
                time = 0.0f;
        }
        timeup = false;
        started = true;
    }
示例#13
0
 /// <summary>
 /// 初始化 HtmlDocumentValidation 的新实例。
 /// </summary>
 /// <param name="name">此验证的名称信息(用于向用户界面显示)。</param>
 /// <param name="documentValidation">一个委托,用于验证 HtmlDocument 是否符合规则。</param>
 /// <param name="errorMessage">验证不符合规则时的提示信息。</param>
 public ValidationDelegateTaken(String name, ValidationType validationType, System.Func<HtmlAgilityPack.HtmlDocument, bool> documentValidation, String errorMessage)
 {
     this.documentValidation = documentValidation;
     this.errorMessage = errorMessage;
     this.Name = name;
     this.Type = validationType;
     if (documentValidation == null)
     {
         throw new ArgumentNullException("documentValidation");
     }
     if (errorMessage == null)
     {
         throw new ArgumentNullException("errorMessage");
     }
 }
示例#14
0
        public BaseEmitter(IParameters parameters)
        {
            _timeSinceEmission = 0;
            _seed = 0;
            _parameters = parameters;
            _randomSource = new System.Random(Seed);

            // Get the delegates we need from the parameters
            _ParticlesPerSecond = Parameters.GetParameterDelegate<int>("ParticlesPerSecond");
            _IsPersistent = Parameters.GetParameterDelegate<bool>("Persistent");
            _EmitOnSurfaceOnly = Parameters.GetParameterDelegate<bool>("EmitOnSurfaceOnly");

            _InitialMass = Parameters.GetParameterDelegate<float>("InitialMass");
            _InitialLifespan = Parameters.GetParameterDelegate<float>("InitialLifespan");
            _InitialSpeed = Parameters.GetParameterDelegate<float>("InitialSpeed");
        }
示例#15
0
    public static List<Room> Generate(int LevelWidth, int LevelHeight, int MinRoomWidth, int MinRoomHeight, int MaxRoomWidth, int MaxRoomHeight, Object Tile, Object Wall)
    {
        //Make sure that the width and height of the tile array is the size of the level
        tilePlacements = new int[LevelWidth, LevelHeight];
        pathFinder = new PathFinder(tilePlacements);
        pathFinder.pathDiagonal = false; //Stop diagonal path finding
        getPathingValueFunc = CalculatePathingValue;
        rooms = new List<Room>();

        for (int y = 0; y < LevelHeight; y++)
        {
            for (int x = 0; x < LevelWidth; x++)
            {
                genRoom(x, y, MinRoomWidth, MinRoomHeight, MaxRoomWidth, MaxRoomHeight, LevelWidth, LevelHeight);
            }
        }
        MakeCorridors();
        placeInLevel(Tile,Wall);
        return rooms;
    }
示例#16
0
 public void InitializeServiceProvider(System.Func <System.Type, object> serviceProvider)
 {
 }
示例#17
0
 protected ValidationAttribute(System.Func <string> errorMessageAccessor)
 {
 }
 public MsgPack_Serialization_ComplexTypeWithNonSerializedSerializer(MsgPack.Serialization.SerializationContext context) :
     base(context, (MsgPack.Serialization.SerializerCapabilities.PackTo | MsgPack.Serialization.SerializerCapabilities.UnpackFrom))
 {
     MsgPack.Serialization.PolymorphismSchema schema0 = default(MsgPack.Serialization.PolymorphismSchema);
     schema0           = null;
     this._serializer0 = context.GetSerializer <byte[]>(schema0);
     MsgPack.Serialization.PolymorphismSchema schema1 = default(MsgPack.Serialization.PolymorphismSchema);
     schema1           = null;
     this._serializer1 = context.GetSerializer <System.Collections.Generic.Dictionary <System.DateTime, string> >(schema1);
     MsgPack.Serialization.PolymorphismSchema schema2 = default(MsgPack.Serialization.PolymorphismSchema);
     schema2           = null;
     this._serializer2 = context.GetSerializer <System.Uri>(schema2);
     this._serializer3 = context.GetSerializer <System.DateTime>(MsgPack.Serialization.DateTimeMessagePackSerializerHelpers.DetermineDateTimeConversionMethod(context, MsgPack.Serialization.DateTimeMemberConversionMethod.Default));
     System.Action <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized>[] packOperationList = default(System.Action <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized>[]);
     packOperationList       = new System.Action <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized> [4];
     packOperationList[0]    = new System.Action <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized>(this.PackValueOfData);
     packOperationList[1]    = new System.Action <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized>(this.PackValueOfHistory);
     packOperationList[2]    = new System.Action <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized>(this.PackValueOfSource);
     packOperationList[3]    = new System.Action <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized>(this.PackValueOfTimeStamp);
     this._packOperationList = packOperationList;
     System.Func <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized, System.Threading.CancellationToken, System.Threading.Tasks.Task>[] packOperationListAsync = default(System.Func <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized, System.Threading.CancellationToken, System.Threading.Tasks.Task>[]);
     packOperationListAsync       = new System.Func <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized, System.Threading.CancellationToken, System.Threading.Tasks.Task> [4];
     packOperationListAsync[0]    = new System.Func <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.PackValueOfDataAsync);
     packOperationListAsync[1]    = new System.Func <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.PackValueOfHistoryAsync);
     packOperationListAsync[2]    = new System.Func <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.PackValueOfSourceAsync);
     packOperationListAsync[3]    = new System.Func <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.PackValueOfTimeStampAsync);
     this._packOperationListAsync = packOperationListAsync;
     System.Collections.Generic.Dictionary <string, System.Action <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized> > packOperationTable = default(System.Collections.Generic.Dictionary <string, System.Action <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized> >);
     packOperationTable              = new System.Collections.Generic.Dictionary <string, System.Action <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized> >(4);
     packOperationTable["Data"]      = new System.Action <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized>(this.PackValueOfData);
     packOperationTable["History"]   = new System.Action <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized>(this.PackValueOfHistory);
     packOperationTable["Source"]    = new System.Action <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized>(this.PackValueOfSource);
     packOperationTable["TimeStamp"] = new System.Action <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized>(this.PackValueOfTimeStamp);
     this._packOperationTable        = packOperationTable;
     System.Collections.Generic.Dictionary <string, System.Func <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized, System.Threading.CancellationToken, System.Threading.Tasks.Task> > packOperationTableAsync = default(System.Collections.Generic.Dictionary <string, System.Func <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized, System.Threading.CancellationToken, System.Threading.Tasks.Task> >);
     packOperationTableAsync              = new System.Collections.Generic.Dictionary <string, System.Func <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized, System.Threading.CancellationToken, System.Threading.Tasks.Task> >(4);
     packOperationTableAsync["Data"]      = new System.Func <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.PackValueOfDataAsync);
     packOperationTableAsync["History"]   = new System.Func <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.PackValueOfHistoryAsync);
     packOperationTableAsync["Source"]    = new System.Func <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.PackValueOfSourceAsync);
     packOperationTableAsync["TimeStamp"] = new System.Func <MsgPack.Packer, MsgPack.Serialization.ComplexTypeWithNonSerialized, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.PackValueOfTimeStampAsync);
     this._packOperationTableAsync        = packOperationTableAsync;
     System.Collections.Generic.Dictionary <string, System.Func <MsgPack.Serialization.ComplexTypeWithNonSerialized, bool> > nullCheckerTable = default(System.Collections.Generic.Dictionary <string, System.Func <MsgPack.Serialization.ComplexTypeWithNonSerialized, bool> >);
     nullCheckerTable            = new System.Collections.Generic.Dictionary <string, System.Func <MsgPack.Serialization.ComplexTypeWithNonSerialized, bool> >(3);
     nullCheckerTable["Data"]    = new System.Func <MsgPack.Serialization.ComplexTypeWithNonSerialized, bool>(this.IsDataNull);
     nullCheckerTable["History"] = new System.Func <MsgPack.Serialization.ComplexTypeWithNonSerialized, bool>(this.IsHistoryNull);
     nullCheckerTable["Source"]  = new System.Func <MsgPack.Serialization.ComplexTypeWithNonSerialized, bool>(this.IsSourceNull);
     this._nullCheckersTable     = nullCheckerTable;
     System.Action <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int>[] unpackOperationList = default(System.Action <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int>[]);
     unpackOperationList       = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int> [4];
     unpackOperationList[0]    = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int>(this.UnpackValueOfData);
     unpackOperationList[1]    = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int>(this.UnpackValueOfHistory);
     unpackOperationList[2]    = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int>(this.UnpackValueOfSource);
     unpackOperationList[3]    = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int>(this.UnpackValueOfTimeStamp);
     this._unpackOperationList = unpackOperationList;
     System.Func <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task>[] unpackOperationListAsync = default(System.Func <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task>[]);
     unpackOperationListAsync       = new System.Func <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task> [4];
     unpackOperationListAsync[0]    = new System.Func <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.UnpackValueOfDataAsync);
     unpackOperationListAsync[1]    = new System.Func <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.UnpackValueOfHistoryAsync);
     unpackOperationListAsync[2]    = new System.Func <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.UnpackValueOfSourceAsync);
     unpackOperationListAsync[3]    = new System.Func <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.UnpackValueOfTimeStampAsync);
     this._unpackOperationListAsync = unpackOperationListAsync;
     System.Collections.Generic.Dictionary <string, System.Action <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int> > unpackOperationTable = default(System.Collections.Generic.Dictionary <string, System.Action <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int> >);
     unpackOperationTable              = new System.Collections.Generic.Dictionary <string, System.Action <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int> >(4);
     unpackOperationTable["Data"]      = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int>(this.UnpackValueOfData);
     unpackOperationTable["History"]   = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int>(this.UnpackValueOfHistory);
     unpackOperationTable["Source"]    = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int>(this.UnpackValueOfSource);
     unpackOperationTable["TimeStamp"] = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int>(this.UnpackValueOfTimeStamp);
     this._unpackOperationTable        = unpackOperationTable;
     System.Collections.Generic.Dictionary <string, System.Func <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task> > unpackOperationTableAsync = default(System.Collections.Generic.Dictionary <string, System.Func <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task> >);
     unpackOperationTableAsync              = new System.Collections.Generic.Dictionary <string, System.Func <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task> >(4);
     unpackOperationTableAsync["Data"]      = new System.Func <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.UnpackValueOfDataAsync);
     unpackOperationTableAsync["History"]   = new System.Func <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.UnpackValueOfHistoryAsync);
     unpackOperationTableAsync["Source"]    = new System.Func <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.UnpackValueOfSourceAsync);
     unpackOperationTableAsync["TimeStamp"] = new System.Func <MsgPack.Unpacker, MsgPack.Serialization.ComplexTypeWithNonSerialized, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.UnpackValueOfTimeStampAsync);
     this._unpackOperationTableAsync        = unpackOperationTableAsync;
     this._memberNames = new string[] {
         "Data",
         "History",
         "Source",
         "TimeStamp"
     };
     this.this_SetUnpackedValueOfDataDelegate = new System.Action <MsgPack.Serialization.ComplexTypeWithNonSerialized, byte[]>(this.SetUnpackedValueOfData);
     this.MsgPack_Serialization_UnpackHelpers_UnpackBinaryValueDelegate = new System.Func <MsgPack.Unpacker, System.Type, string, byte[]>(MsgPack.Serialization.UnpackHelpers.UnpackBinaryValue);
     this.this_SetUnpackedValueOfHistoryDelegate   = new System.Action <MsgPack.Serialization.ComplexTypeWithNonSerialized, System.Collections.Generic.Dictionary <System.DateTime, string> >(this.SetUnpackedValueOfHistory);
     this.this_SetUnpackedValueOfSourceDelegate    = new System.Action <MsgPack.Serialization.ComplexTypeWithNonSerialized, System.Uri>(this.SetUnpackedValueOfSource);
     this.this_SetUnpackedValueOfTimeStampDelegate = new System.Action <MsgPack.Serialization.ComplexTypeWithNonSerialized, System.DateTime>(this.SetUnpackedValueOfTimeStamp);
     this.MsgPack_Serialization_UnpackHelpers_UnpackBinaryValueAsyncDelegate = new System.Func <MsgPack.Unpacker, System.Type, string, System.Threading.CancellationToken, System.Threading.Tasks.Task <byte[]> >(MsgPack.Serialization.UnpackHelpers.UnpackBinaryValueAsync);
 }
示例#19
0
 public CustomFunction(string aName, System.Func <double[], double> aDelegate, params IValue[] aValues)
 {
     m_Delegate = aDelegate;
     m_Params   = aValues;
     m_Name     = aName;
 }
示例#20
0
 public LegacySqlConnectionManager(System.Func <System.Data.IDbConnection> connectionFactory)
 {
 }
示例#21
0
 public MsgPack_Serialization_PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWritePropertySerializer(MsgPack.Serialization.SerializationContext context) :
     base(context)
 {
     MsgPack.Serialization.PolymorphismSchema   schema0           = default(MsgPack.Serialization.PolymorphismSchema);
     MsgPack.Serialization.PolymorphismSchema[] tupleItemsSchema0 = default(MsgPack.Serialization.PolymorphismSchema[]);
     tupleItemsSchema0 = new MsgPack.Serialization.PolymorphismSchema[7];
     MsgPack.Serialization.PolymorphismSchema tupleItemSchema0 = default(MsgPack.Serialization.PolymorphismSchema);
     tupleItemSchema0     = null;
     tupleItemsSchema0[0] = tupleItemSchema0;
     MsgPack.Serialization.PolymorphismSchema tupleItemSchema1 = default(MsgPack.Serialization.PolymorphismSchema);
     tupleItemSchema1     = null;
     tupleItemsSchema0[1] = tupleItemSchema1;
     MsgPack.Serialization.PolymorphismSchema tupleItemSchema2 = default(MsgPack.Serialization.PolymorphismSchema);
     tupleItemSchema2     = null;
     tupleItemsSchema0[2] = tupleItemSchema2;
     MsgPack.Serialization.PolymorphismSchema tupleItemSchema3 = default(MsgPack.Serialization.PolymorphismSchema);
     tupleItemSchema3     = null;
     tupleItemsSchema0[3] = tupleItemSchema3;
     MsgPack.Serialization.PolymorphismSchema tupleItemSchema4 = default(MsgPack.Serialization.PolymorphismSchema);
     tupleItemSchema4     = null;
     tupleItemsSchema0[4] = tupleItemSchema4;
     MsgPack.Serialization.PolymorphismSchema tupleItemSchema5 = default(MsgPack.Serialization.PolymorphismSchema);
     tupleItemSchema5     = null;
     tupleItemsSchema0[5] = tupleItemSchema5;
     MsgPack.Serialization.PolymorphismSchema tupleItemSchema6 = default(MsgPack.Serialization.PolymorphismSchema);
     tupleItemSchema6     = null;
     tupleItemsSchema0[6] = tupleItemSchema6;
     schema0           = MsgPack.Serialization.PolymorphismSchema.ForPolymorphicTuple(typeof(System.Tuple <string, string, string, string, string, string, string>), tupleItemsSchema0);
     this._serializer0 = context.GetSerializer <System.Tuple <string, string, string, string, string, string, string> >(schema0);
     System.Action <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty>[] packOperationList = default(System.Action <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty>[]);
     packOperationList       = new System.Action <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty> [1];
     packOperationList[0]    = new System.Action <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty>(this.PackValueOfTuple7AllStatic);
     this._packOperationList = packOperationList;
     System.Func <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, System.Threading.CancellationToken, System.Threading.Tasks.Task>[] packOperationListAsync = default(System.Func <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, System.Threading.CancellationToken, System.Threading.Tasks.Task>[]);
     packOperationListAsync       = new System.Func <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, System.Threading.CancellationToken, System.Threading.Tasks.Task> [1];
     packOperationListAsync[0]    = new System.Func <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.PackValueOfTuple7AllStaticAsync);
     this._packOperationListAsync = packOperationListAsync;
     System.Collections.Generic.Dictionary <string, System.Action <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty> > packOperationTable = default(System.Collections.Generic.Dictionary <string, System.Action <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty> >);
     packOperationTable = new System.Collections.Generic.Dictionary <string, System.Action <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty> >(1);
     packOperationTable["Tuple7AllStatic"] = new System.Action <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty>(this.PackValueOfTuple7AllStatic);
     this._packOperationTable = packOperationTable;
     System.Collections.Generic.Dictionary <string, System.Func <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, System.Threading.CancellationToken, System.Threading.Tasks.Task> > packOperationTableAsync = default(System.Collections.Generic.Dictionary <string, System.Func <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, System.Threading.CancellationToken, System.Threading.Tasks.Task> >);
     packOperationTableAsync = new System.Collections.Generic.Dictionary <string, System.Func <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, System.Threading.CancellationToken, System.Threading.Tasks.Task> >(1);
     packOperationTableAsync["Tuple7AllStatic"] = new System.Func <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.PackValueOfTuple7AllStaticAsync);
     this._packOperationTableAsync = packOperationTableAsync;
     System.Action <MsgPack.Unpacker, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, int, int>[] unpackOperationList = default(System.Action <MsgPack.Unpacker, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, int, int>[]);
     unpackOperationList       = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, int, int> [1];
     unpackOperationList[0]    = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, int, int>(this.UnpackValueOfTuple7AllStatic);
     this._unpackOperationList = unpackOperationList;
     System.Func <MsgPack.Unpacker, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task>[] unpackOperationListAsync = default(System.Func <MsgPack.Unpacker, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task>[]);
     unpackOperationListAsync       = new System.Func <MsgPack.Unpacker, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task> [1];
     unpackOperationListAsync[0]    = new System.Func <MsgPack.Unpacker, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.UnpackValueOfTuple7AllStaticAsync);
     this._unpackOperationListAsync = unpackOperationListAsync;
     System.Collections.Generic.Dictionary <string, System.Action <MsgPack.Unpacker, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, int, int> > unpackOperationTable = default(System.Collections.Generic.Dictionary <string, System.Action <MsgPack.Unpacker, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, int, int> >);
     unpackOperationTable = new System.Collections.Generic.Dictionary <string, System.Action <MsgPack.Unpacker, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, int, int> >(1);
     unpackOperationTable["Tuple7AllStatic"] = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, int, int>(this.UnpackValueOfTuple7AllStatic);
     this._unpackOperationTable = unpackOperationTable;
     System.Collections.Generic.Dictionary <string, System.Func <MsgPack.Unpacker, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task> > unpackOperationTableAsync = default(System.Collections.Generic.Dictionary <string, System.Func <MsgPack.Unpacker, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task> >);
     unpackOperationTableAsync = new System.Collections.Generic.Dictionary <string, System.Func <MsgPack.Unpacker, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task> >(1);
     unpackOperationTableAsync["Tuple7AllStatic"] = new System.Func <MsgPack.Unpacker, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.UnpackValueOfTuple7AllStaticAsync);
     this._unpackOperationTableAsync = unpackOperationTableAsync;
     this._memberNames = new string[] {
         "Tuple7AllStatic"
     };
     this.this_PackValueOfTuple7AllStaticDelegate        = new System.Action <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty>(this.PackValueOfTuple7AllStatic);
     this.this_PackValueOfTuple7AllStaticAsyncDelegate   = new System.Func <MsgPack.Packer, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.PackValueOfTuple7AllStaticAsync);
     this.this_SetUnpackedValueOfTuple7AllStaticDelegate = new System.Action <MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, System.Tuple <string, string, string, string, string, string, string> >(this.SetUnpackedValueOfTuple7AllStatic);
     this.this_UnpackValueOfTuple7AllStaticDelegate      = new System.Action <MsgPack.Unpacker, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, int, int>(this.UnpackValueOfTuple7AllStatic);
     this.this_UnpackValueOfTuple7AllStaticAsyncDelegate = new System.Func <MsgPack.Unpacker, MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7AllStaticReadWriteProperty, int, int, System.Threading.CancellationToken, System.Threading.Tasks.Task>(this.UnpackValueOfTuple7AllStaticAsync);
 }
示例#22
0
 public SQLiteScriptExecutor(System.Func <DbUp.Engine.Transactions.IConnectionManager> connectionManagerFactory, System.Func <DbUp.Engine.Output.IUpgradeLog> log, string schema, System.Func <bool> variablesEnabled, System.Collections.Generic.IEnumerable <DbUp.Engine.IScriptPreprocessor> scriptPreprocessors, System.Func <DbUp.Engine.IJournal> journalFactory)
 {
 }
示例#23
0
        public static MethodReference ResolveMethod(TypeReference t, AssemblyDefinition assembly, Logger Log, System.Func <MethodDefinition, bool> predicate, ref bool WeavingFailed)
        {
            foreach (MethodDefinition methodRef in t.Resolve().Methods)
            {
                if (predicate(methodRef))
                {
                    return(assembly.MainModule.ImportReference(methodRef));
                }
            }

            Log.Error($"Method not found in type {t.Name}", t);
            WeavingFailed = true;
            return(null);
        }
示例#24
0
 public T ExecuteCommandsWithManagedConnection <T>(System.Func <System.Func <System.Data.IDbCommand>, T> actionWithResult)
 {
 }
示例#25
0
        internal static T GetValueForProperty <T>(this System.Collections.IDictionary dictionary, string propertyName, T defaultValue, System.Func <object, T> converter)
        {
            try
            {
                var key = System.Linq.Enumerable.FirstOrDefault(dictionary.Keys.OfType <object>(), each => System.String.Equals(each.ToString(), propertyName, System.StringComparison.CurrentCultureIgnoreCase));
                return(key == null ? defaultValue : (T)converter(dictionary[key]));
            }
#if DEBUG
            catch (System.Exception E)
            {
                System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}");
            }
#else
            catch
            {
            }
#endif
            return(defaultValue);
        }
示例#26
0
 public EnumeratorWithProgress(IEnumerator enumerator, System.Func <float> progressFunction)
 {
     _enumerator       = enumerator;
     _progressFunction = progressFunction;
 }
示例#27
0
 public PacketHolder(int size, bool shouldDispose, System.TimeSpan lifetime)
     : base(size, shouldDispose, lifetime)
 {
     Completer = StaticCompleteFrom;
 }
示例#28
0
 public PacketHolder(int size, bool shouldDispose = true)
     : base(size, shouldDispose)
 {
     Completer = StaticCompleteFrom;
 }
示例#29
0
 public SQLiteTableJournal(System.Func <DbUp.Engine.Transactions.IConnectionManager> connectionManager, System.Func <DbUp.Engine.Output.IUpgradeLog> logger, string table)
 {
 }
 public TValue AddOrUpdate <TArg>(TKey key, System.Func <TKey, TArg, TValue> addValueFactory, System.Func <TKey, TValue, TArg, TValue> updateValueFactory, TArg factoryArgument)
 {
     throw null;
 }
示例#31
0
 public DelegateConnectionFactory(System.Func <DbUp.Engine.Output.IUpgradeLog, System.Data.IDbConnection> createConnection)
 {
 }
示例#32
0
 public AdHocSqlRunner(System.Func <System.Data.IDbCommand> commandFactory, string schema, System.Func <bool> variablesEnabled, params DbUp.Engine.IScriptPreprocessor[] additionalScriptPreprocessors)
 {
 }
示例#33
0
 public LazySqlScript(string name, System.Func <string> contentProvider)
 {
 }
示例#34
0
 protected DatabaseConnectionManager(System.Func <DbUp.Engine.Output.IUpgradeLog, System.Data.IDbConnection> connectionFactory)
 {
 }
示例#35
0
        public static T GetAttributeValue <T>(SXL.XElement el, SXL.XName name, T defval, System.Func <string, T> converter)
        {
            var a = el.Attribute(name);

            if (a == null)
            {
                return(defval);
            }

            string v = a.Value;

            return(converter(v));
        }
 public TValue GetOrAdd <TArg>(TKey key, System.Func <TKey, TArg, TValue> valueFactory, TArg factoryArgument)
 {
     throw null;
 }
示例#37
0
 public bool Raycast(Vector3 mousePosition, LayerMask mask, out RaycastHit hitInfo, System.Func <RaycastHit[], RaycastHit> hitComparer)
 {
     RaycastHit[] hits;
     hits = Physics.RaycastAll(GetMouseRay(mousePosition), RAYCAST_MAX_DISTANCE, mask);
     if (hits.Length > 0)
     {
         hitInfo = hitComparer(hits);
         return(true);
     }
     hitInfo = new RaycastHit();
     return(false);
 }
 public IEnumerable <dynamic> Search(ILocationSearchModel searchModel, System.Func <ILocation, dynamic> selectStatement, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive)
            .Select(selectStatement));
 }
示例#39
0
        internal static T GetValueForProperty <T>(this System.Management.Automation.PSObject psObject, string propertyName, T defaultValue, System.Func <object, T> converter)
        {
            try
            {
                var property = System.Linq.Enumerable.FirstOrDefault(psObject.Properties, each => System.String.Equals(each.Name.ToString(), propertyName, System.StringComparison.CurrentCultureIgnoreCase));
                return(property == null ? defaultValue : (T)converter(property.Value));
            }
#if DEBUG
            catch (System.Exception E)
            {
                System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}");
            }
#else
            catch
            {
            }
#endif
            return(defaultValue);
        }
示例#40
0
 public DelegateConnectionFactory(System.Func <DbUp.Engine.Output.IUpgradeLog, DbUp.Engine.Transactions.DatabaseConnectionManager, System.Data.IDbConnection> createConnection)
 {
 }
示例#41
0
 public WaitForFunction(System.Func<bool> call)
 {
     mRepetitionCall = call;
 }
示例#42
0
 public void whenDefault()
 {
     onDoCheck = delegate () { return true; };
 }
示例#43
0
 internal static IOrderedEnumerable <T> ThenBy <T, TKey>(this IOrderedEnumerable <T> source, System.Func <T, TKey> selector, bool ascending)
 {
     if (ascending)
     {
         return(source.ThenBy(selector));
     }
     else
     {
         return(source.ThenByDescending(selector));
     }
 }
 public TValue GetOrAdd(TKey key, System.Func <TKey, TValue> valueFactory)
 {
     throw null;
 }
示例#45
0
 /// <summary> 当条件达成就可以触发跳转,和after是与(and)的布尔关系。 </summary>
 /// <param name="_onCheck">
 /// 条件函数,返回是否可以跳转。
 /// 这个方法不能有任何副作用,如果需要修改变量,应该在state的回调里修改!
 /// </param>
 public AnimTransition when(System.Func<bool> _onCheck = null)
 {
     onDoCheck = _onCheck;
     return this;
 }
示例#46
0
        private DragAndDropVisualMode HandleSingleObjectDrop <T>(DragAndDropArgs args, System.Func <T, DragAndDropArgs, DragAndDropVisualMode> action) where T : Object
        {
            var draggedObjects = DragAndDrop.objectReferences;

            if (draggedObjects.Length > 1)
            {
                return(DragAndDropVisualMode.Rejected);
            }
            var objects = draggedObjects
                          .Select(d => d as T)
                          .Where(s => null != s).ToList();

            if (objects.Count == 1)
            {
                return(action(objects[0], args));
            }

            return(DragAndDropVisualMode.Rejected);
        }
示例#47
0
文件: FPS.cs 项目: KzoNag/project_k
 public FPS( System.Func<float> _deltaTime )
 {
     DeltaTime = _deltaTime;
 }
示例#48
0
 /// <summary>
 /// Constructor
 /// </summary>
 public PersonServerTranslatorTo(IGdprCapability gdprCapability, System.Func <string> getServerNameMethod, ITranslatorService translatorService)
     : base(gdprCapability.PersonService, "person.id", getServerNameMethod, translatorService)
 {
     _gdprCapability = gdprCapability;
 }
示例#49
0
		public AstarWorkItem (OnVoidDelegate init, System.Func<bool, bool> update) {
			this.init = init;
			this.update = update;
		}
示例#50
0
		public AstarWorkItem (System.Func<bool, bool> update) {
			init = null;
			this.update = update;
		}
 public TValue AddOrUpdate(TKey key, TValue addValue, System.Func <TKey, TValue, TValue> updateValueFactory)
 {
     throw null;
 }
		public void SetValue(System.Func<float> getValue, bool immediately = false) {

			this.getValue = getValue;
			this.getValueImmediately = immediately;
			this.getValueActive = true;

		}
示例#53
0
		public PathTypeDebug (string name, System.Func<int> getSize, System.Func<int> getTotalCreated) {
			this.name = name;
			this.getSize = getSize;
			this.getTotalCreated = getTotalCreated;
		}
示例#54
0
	public void SetDeathCallback( System.Func<Transform,System.Void> deathCallback ){
		m_DeathCallback = deathCallback;
	}
 public DoWorkEventArgs(object argument, System.Func<bool> canceled)
 {
     Argument = argument;
     _canceled = (canceled == null) ? () => false : canceled;
 }
 public bool OnGUILayout(SerializedProperty property, GUIContent label, bool includeChildren, GUILayoutOption[] options)
 {
     var drawer = this.GetDrawer(property);
     if(drawer != null)
     {
         var h = drawer.GetPropertyHeight(property, label);
         var position = EditorGUILayout.GetControlRect(true, h);
         EditorGUI.BeginChangeCheck();
         drawer.OnGUI(position, property, label);
         return EditorGUI.EndChangeCheck();
     }
     else
     {
         if (_imp_DefaultPropertyField == null) _imp_DefaultPropertyField = _editorGuiAccessWrapper.GetStaticMethod("DefaultPropertyField", typeof(System.Func<Rect, SerializedProperty, GUIContent, bool>)) as System.Func<Rect, SerializedProperty, GUIContent, bool>;
         var position = EditorGUILayout.GetControlRect(true, EditorGUIUtility.singleLineHeight);
         return _imp_DefaultPropertyField(position, property, label);
     }
 }
 public bool OnGUI(Rect position, SerializedProperty property, GUIContent label, bool includeChildren)
 {
     var drawer = this.GetDrawer(property);
     if(drawer != null)
     {
         EditorGUI.BeginChangeCheck();
         drawer.OnGUI(position, property, label);
         return EditorGUI.EndChangeCheck();
     }
     else
     {
         if (_imp_DefaultPropertyField == null) _imp_DefaultPropertyField = _editorGuiAccessWrapper.GetStaticMethod("DefaultPropertyField", typeof(System.Func<Rect, SerializedProperty, GUIContent, bool>)) as System.Func<Rect, SerializedProperty, GUIContent, bool>;
         return _imp_DefaultPropertyField(position, property, label);
     }
 }
示例#58
0
 public DeploymentManagerFactory(System.Func<IDeploymentManager> factory)
 {
     _factory = factory;
 }
示例#59
0
        // Public Methods

        public virtual void Initialize(int id, System.Func<int, bool> isFocusedCallback) {
            if(_initialized) {
                Debug.LogError("Window is already initialized!");
                return;
            }
            _id = id;
            _isFocusedCallback = isFocusedCallback;
            _timer = new Timer();
            _contentText = new List<Text>();
            _canvasGroup = GetComponent<CanvasGroup>();
            _initialized = true;
        }
示例#60
-1
 static Parser()
 {
     CreateTrigger = delegate (DependencyObject target, string triggerText) {
         if (triggerText == null)
         {
             return ConventionManager.GetElementConvention(target.GetType()).CreateTrigger();
         }
         string str = triggerText.Replace("[", string.Empty).Replace("]", string.Empty).Replace("Event", string.Empty).Trim();
         return new System.Windows.Interactivity.EventTrigger { EventName = str };
     };
     InterpretMessageText = (target, text) => new ActionMessage { MethodName = Regex.Replace(text, "^Action", string.Empty).Trim() };
     CreateParameter = delegate (DependencyObject target, string parameterText) {
         Parameter actualParameter = new Parameter();
         if (parameterText.StartsWith("'") && parameterText.EndsWith("'"))
         {
             actualParameter.Value = parameterText.Substring(1, parameterText.Length - 2);
         }
         else if (MessageBinder.SpecialValues.ContainsKey(parameterText.ToLower()) || char.IsNumber(parameterText[0]))
         {
             actualParameter.Value = parameterText;
         }
         else if (target is FrameworkElement)
         {
             FrameworkElement fe = (FrameworkElement) target;
             string[] nameAndBindingMode = (from x in parameterText.Split(new char[] { ':' }) select x.Trim()).ToArray<string>();
             int index = nameAndBindingMode[0].IndexOf('.');
             View.ExecuteOnLoad(fe, (, ) => BindParameter(fe, actualParameter, (index == -1) ? nameAndBindingMode[0] : nameAndBindingMode[0].Substring(0, index), (index == -1) ? null : nameAndBindingMode[0].Substring(index + 1), (nameAndBindingMode.Length == 2) ? ((BindingMode) Enum.Parse(typeof(BindingMode), nameAndBindingMode[1], true)) : BindingMode.OneWay));
         }
         return actualParameter;
     };
 }