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
Copy file name to clipboardExpand all lines: eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/ManagementClientGenerator.cs
Copy file name to clipboardExpand all lines: eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Visitors/SafeFlattenVisitor.cs
@@ -43,7 +45,6 @@ internal class SafeFlattenVisitor : ScmLibraryVisitor
43
45
// make the current property internal
44
46
varinternalSingleProperty=type!.Properties.Single(p =>p.Type.AreNamesEqual(propertyTypeProvider.Type));// type equal not working here, so we use AreNamesEqual
// The model factory method return a new instance of the model type, update the constructor arguments with the flattened properties of internalized properties.
[flattenedProperty.AsParameter,New.Instance(newCSharpType(typeof(Dictionary<,>),typeof(string),typeof(BinaryData)))])));// TODO: handle additional parameters properly or should it be nullable?
// Since we make the properties with flattend types internal, the flattened types will be internalized during post processing, We need to keep the flattened types public
Copy file name to clipboardExpand all lines: eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/MgmtTypeSpecModelFactory.cs
Copy file name to clipboardExpand all lines: eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/BarSettingsProperties.Serialization.cs
Copy file name to clipboardExpand all lines: eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/BarSettingsProperties.cs
0 commit comments