You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* virtual-properties, memory increase, minor fixes
* inline properties step
* remove message about actual path
* Added System.AttachDebugger.Break() and fixed string serializition of enum that has a null value
* temp fix for wildcard deserializer
* explictly set the collection type in wildcard
* changing incubator to powershell
* incubator => powershell
* extending interface to azaccounts
* Updated debugability, fixed error handling, extended azmodule suport, and more
returntoExpression(`System.Linq.Enumerable.ToDictionary<string,string, ${this.leafType.declaration}>( ${valueOf(container)}?.Elements() ?? System.Linq.Enumerable.Empty<System.Xml.Linq.XElement>(), element => element.Name.ToString(), element => ${this.leafType.deserializeFromNode(mediaType,'element',toExpression('null'))} )`);
45
+
returntoExpression(`new System.Collections.Hashtable(System.Linq.Enumerable.ToDictionary<string,string, ${this.leafType.declaration}>( ${valueOf(container)}?.Elements() ?? System.Linq.Enumerable.Empty<System.Xml.Linq.XElement>(), element => element.Name.ToString(), element => ${this.leafType.deserializeFromNode(mediaType,'element',toExpression('null'))}))`);
46
46
}
47
47
}
48
48
returntoExpression(`null /* deserializeFromContainerMember (wildcard) doesn't support '${mediaType}' ${__filename}*/`);
@@ -53,7 +53,7 @@ export class Wildcard implements EnhancedTypeDeclaration {
53
53
switch(mediaType){
54
54
caseKnownMediaType.Json:
55
55
constnodeAsObject=`(${(valueOf(node))} as ${ClientRuntime.JsonObject})`;
56
-
returntoExpression(`/* 2 */ System.Linq.Enumerable.ToDictionary<string,string, ${this.leafType.declaration}>( ${nodeAsObject}?.Keys ?? System.Linq.Enumerable.Empty<string>(), each => each, each => ${this.leafType.deserializeFromNode(mediaType,`${nodeAsObject}.PropertyT<${ClientRuntime.JsonNode}>(each)`,toExpression('null'))} )`);
56
+
returntoExpression(`/* 2 */ new System.Collections.Hashtable(System.Linq.Enumerable.ToDictionary<string,string, ${this.leafType.declaration}>( ${nodeAsObject}?.Keys ?? System.Linq.Enumerable.Empty<string>(), each => each, each => ${this.leafType.deserializeFromNode(mediaType,`${nodeAsObject}.PropertyT<${ClientRuntime.JsonNode}>(each)`,toExpression('null'))}))`);
57
57
}
58
58
returntoExpression(`null /* deserializeFromNode (wildcard) doesn't support '${mediaType}' ${__filename}*/`);
59
59
}
@@ -90,13 +90,23 @@ export class Wildcard implements EnhancedTypeDeclaration {
90
90
91
91
/** emits the code required to serialize this into a container */
yield`AddIf( ${$this.leafType.serializeToNode(mediaType,`${eachvalue} as ${$this.leafType.declaration}`,`$$$`)},(${item}) => ${innerContainer}.Add(${each} as string,${item} ) );`;
0 commit comments