Complex types fixes (#978)

fix #940 and #975 
- add namespace qualifier to complex type name
- improve handling of known subtypes
- fix Pss detection on .Net 462
- stronger check of valid DataTypeDefinition for servers which expose invalid structure (nodejs)
This commit is contained in:
Martin Regen
2020-05-15 12:54:20 +02:00
committed by GitHub
parent 946f402e87
commit f53f71f8a4
8 changed files with 139 additions and 38 deletions
@@ -27,18 +27,7 @@
* http://opcfoundation.org/License/MIT/1.00/
* ======================================================================*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using Opc.Ua.Configuration;
namespace Opc.Ua.Client.Controls
{
@@ -72,7 +61,7 @@ namespace Opc.Ua.Client.Controls
private const int ArrayValue = 14;
private const int InputArgument = 15;
private const int OutputArgument = 16;
/// <summary>
/// Returns an image index for the specified method argument.
/// </summary>
@@ -89,6 +78,7 @@ namespace Opc.Ua.Client.Controls
/// <summary>
/// Returns an image index for the specified attribute.
/// </summary>
#pragma warning disable 0162
public static int GetImageIndex(uint attributeId, object value)
{
// Workaround to avoid exception when accessing ImageList