public ActionBinding(Int32 id, String name, Type actionType, MethodInfo method) { Id = id; Name = name; m_ActionType = actionType; if (!method.IsStatic) throw new GossipScriptException("Method must be static"); if (method.ReturnType != typeof (void)) throw new GossipScriptException("Method must return IActionNode"); ParameterInfo[] parameters = method.GetParameters(); m_NumParameters = parameters.Length; m_ParameterInfo = new TypeAdapter[NumParameters]; for (int i = 0; i < ParameterInfo.Length; i++) { GossipType convertedType = TypeConverter.ConvertHostType(parameters[i].ParameterType); ParameterInfo[i] = new TypeAdapter(convertedType, parameters[i].ParameterType); } }
public ExtendedTypeAdapter(GossipType gossipType, Type hostType, Int32 data) { TypeAdapter = new TypeAdapter(gossipType, hostType); Data = data; }
public ExtendedTypeAdapter(GossipType gossipType, Type hostType) { TypeAdapter = new TypeAdapter(gossipType, hostType); }