public void SetManagedReturn(CSharpType aType) { if (iManagedReturnType.ToString() != "void") { throw new Exception(String.Format("Return type collision. Already had: {0}, tried to add: {1}", iManagedReturnType, aType)); } iManagedReturnType = aType; }
public void AddManagedParameter(string aName, CSharpType aType) { iManagedArguments.Add(new KeyValuePair <string, CSharpType>(aName, aType)); }
public void SetPInvokeReturn(CSharpType aType, string aVariableName) { iPInvokeReturnType = aType; iPInvokeReturnVariable = aVariableName; }
public void AddPInvokeParameter(CSharpType aType, string aPInvokeName, string aExpression) { iPInvokeArguments.Add(new KeyValuePair <string, CSharpType>(aPInvokeName, aType)); iArgumentExpressions.Add(aExpression); }
public void AddNativeParameter(CSharpType aType, string aPInvokeName, string aExpression) { iFunctionAssembler.AddPInvokeParameter(aType, aPInvokeName, aExpression); }
public void AddManagedParameter(string aName, CSharpType aType) { iFunctionAssembler.AddManagedParameter(aName, aType); }
public void AddPInvokeParameter(CSharpType aType, string aPInvokeName, string aExpression) { iPInvokeArguments.Add(new KeyValuePair<string, CSharpType>(aPInvokeName, aType)); iArgumentExpressions.Add(aExpression); }
public void AddManagedParameter(string aName, CSharpType aType) { iManagedArguments.Add(new KeyValuePair<string, CSharpType>(aName, aType)); }