private bool CheckParameter(ParameterDefinition paramDef) { CustomAttribute dynamicAttribute; if (!paramDef.TryGetDynamicAttribute(out dynamicAttribute)) { return(false); } bool[] dynamicPositioningFlags = DynamicHelper.GetDynamicPositioningFlags(dynamicAttribute); if (dynamicPositioningFlags.Length != this.dynamicPositioningFlags.Count) { return(false); } LinkedListNode <bool> currentNode = this.dynamicPositioningFlags.First; foreach (bool flag in dynamicPositioningFlags) { if (flag != currentNode.Value) { return(false); } currentNode = currentNode.Next; } return(true); }
private bool CheckParameter(ParameterDefinition paramDef) { if (!paramDef.TryGetDynamicAttribute(out V_0)) { return(false); } V_1 = DynamicHelper.GetDynamicPositioningFlags(V_0); if ((int)V_1.Length != this.dynamicPositioningFlags.get_Count()) { return(false); } V_2 = this.dynamicPositioningFlags.get_First(); V_3 = V_1; V_4 = 0; while (V_4 < (int)V_3.Length) { if (V_3[V_4] != V_2.get_Value()) { return(false); } V_2 = V_2.get_Next(); V_4 = V_4 + 1; } return(true); }