File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 380380 if (c.IsCollection){
381381 typeString = String.Format("List<{0}>", c.Type.GetTypeString());
382382 } else if (typeString.Equals("Stream")) {
383+
384+ // Excel introduced the use of "Edm.Stream" types
385+ // normally this would be addressed at the TypeHelper level
386+ // but because streams will use different data containers
387+ // for outgoing vs. incoming streams I'm going to apply the type
388+ // here. Outbound Streams will use byte[]
389+
383390 typeString = "byte[]";
384391 }
385392 return typeString;
389396 var returnType = c.AsOdcmMethod().ReturnType;
390397 if (returnType != null) {
391398 var returnTypeString = returnType.GetTypeString();
399+
400+ // Excel introduced the use of "Edm.Stream" types
401+ // normally this would be addressed at the TypeHelper level
402+ // but because streams will use different data containers
403+ // for outgoing vs. incoming streams I'm going to apply the type
404+ // here. Inbound Streams will use java.io.InputStream
405+
392406 if (returnTypeString.Equals("Stream")) {
393407 returnTypeString = "java.io.InputStream";
394408 }
You can’t perform that action at this time.
0 commit comments