From 78ba8f6d4e1ad29e81c450308947e546c899c543 Mon Sep 17 00:00:00 2001 From: yatsenko Date: Mon, 23 Dec 2024 16:50:22 +0500 Subject: [PATCH] fix --- src/Com/PowersOfAttorney.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Com/PowersOfAttorney.cs b/src/Com/PowersOfAttorney.cs index c9afdae..16aae86 100644 --- a/src/Com/PowersOfAttorney.cs +++ b/src/Com/PowersOfAttorney.cs @@ -37,7 +37,7 @@ public interface IPowerOfAttorney ReadonlyList DelegationChainList { get; } PowerOfAttorneyPermissionsInfo PermissionsInfo { get; set; } PowerOfAttorneyDelegationInfo DelegationInfo { get; set; } - PowerOfAttorneyRepresentative[] RepresentativesList { get; } + ReadonlyList RepresentativesList { get; } } [ComVisible(true)] @@ -48,7 +48,7 @@ public interface IPowerOfAttorney public partial class PowerOfAttorney : SafeComObject, IPowerOfAttorney { public ReadonlyList DelegationChainList => new ReadonlyList(DelegationChain); - public PowerOfAttorneyRepresentative[] RepresentativesList => new List(Representatives).ToArray(); + public ReadonlyList RepresentativesList => new ReadonlyList(Representatives); } [ComVisible(true)] @@ -84,7 +84,7 @@ public interface IPowerOfAttorneyRepresentativeLegalEntity string Inn { get; set; } string Kpp { get; set; } string OrganizationName { get; set; } - PowerOfAttorneyRepresentativePhysicalEntity[] PhysicalEntities { get; } + ReadonlyList PhysicalEntities { get; } } [ComVisible(true)] @@ -94,7 +94,7 @@ public interface IPowerOfAttorneyRepresentativeLegalEntity [ComDefaultInterface(typeof(IPowerOfAttorneyRepresentativeLegalEntity))] public partial class PowerOfAttorneyRepresentativeLegalEntity : SafeComObject, IPowerOfAttorneyRepresentativeLegalEntity { - public PowerOfAttorneyRepresentativePhysicalEntity[] PhysicalEntities => new List(PhysicalEntity).ToArray(); + public ReadonlyList PhysicalEntities => new ReadonlyList(PhysicalEntity); } [ComVisible(true)]