예제 #1
0
 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;
 }
예제 #2
0
 public void AddManagedParameter(string aName, CSharpType aType)
 {
     iManagedArguments.Add(new KeyValuePair <string, CSharpType>(aName, aType));
 }
예제 #3
0
 public void SetPInvokeReturn(CSharpType aType, string aVariableName)
 {
     iPInvokeReturnType     = aType;
     iPInvokeReturnVariable = aVariableName;
 }
예제 #4
0
 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);
 }
예제 #7
0
 public void SetPInvokeReturn(CSharpType aType, string aVariableName)
 {
     iPInvokeReturnType = aType;
     iPInvokeReturnVariable = aVariableName;
 }
예제 #8
0
 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;
 }
예제 #9
0
 public void AddPInvokeParameter(CSharpType aType, string aPInvokeName, string aExpression)
 {
     iPInvokeArguments.Add(new KeyValuePair<string, CSharpType>(aPInvokeName, aType));
     iArgumentExpressions.Add(aExpression);
 }
예제 #10
0
 public void AddManagedParameter(string aName, CSharpType aType)
 {
     iManagedArguments.Add(new KeyValuePair<string, CSharpType>(aName, aType));
 }