Quantcast
Channel: xsd2Code community edition .net class generator from XSD schema
Viewing all 543 articles
Browse latest View live

Commented Unassigned: Different Licences [16839]

$
0
0
Hello together;

On your website https://xsd2code.codeplex.com Register "HOME" you say the license of the community edition is for private and opensource project's only.
When we look at the register "LICENSE" then it is MIT-License, what is quite different.

Which one is it now ?

greetings
Klaus
Comments: ** Comment from web user: pcabanel **

Hello,
The license of xsd2code is MIT-License.
I fixed the home page to avoid any confusion.
Regards.


Commented Issue: attributes using a reserved name (ex: attribute named "System") [11253]

$
0
0
If there is an attribute with a name equal to a base namespace of .net thi may conflict.
Particulary if there is an attribute/property "System" and the "XmlAttribute" flag is set, the generated code do not compile (System do not contains a definition of Xml)
 
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
[System.Runtime.Serialization.DataMemberAttribute()]
public string System {get; set;}
 
- This can be solved generating
 
[System.Xml.Serialization.XmlElementAttribute("System",Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
[System.Runtime.Serialization.DataMemberAttribute()]
public string System<xsd2codePostfix> {get; set;}
 
- In general can be generated like:
 
[System.Xml.Serialization.XmlElementAttribute("<OriginalAttributeName>",Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
[System.Runtime.Serialization.DataMemberAttribute()]
public string <OriginalAttributeName><xsd2codePostfix> {get; set;}
 
When <OriginalAttributeName> is a reserved name.
Comments: ** Comment from web user: pramensky **

I have an XML file with a type called "Value" which turns into a field with type "ValueType". This conflicts with System.ValueType. I can't change the XML file as it is an OASIS defined schema. Being able to control the type name generation for cases like this is important. At this point I'll hand patch the generated code and see if I can find time to submit a patch.

New Post: No data loaded from XML file

Created Unassigned: Problem with serialise/deserialise with xml attributes [16923]

$
0
0
Having a problem with xsd2code generated classes in vb dotnet, using latest version of xsd2code.

Problem is, when generating classes on complex XSD (about 15 files, with lots of inheritance of data types), if use XML attributes is off, then I can serialise fine, but deserialising from an XML confirming to the XSD, but with xmlns attributes fails. So I turn on XML attributes in xsd2code, and regenerate. Then deserialising works fine, but serialising then fails, with an exception which appears to be related to the inheritance of data types. Exception text is: 'The type JMSTestVB1.JMSTestVB2.CommonResourceInfo was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not known statically.'

Any way to resolve this without having to manually futz around with the generated code? (The xsd2code generated code with XML attributes enabled for this set of XSDs is about 17k lines long)

Any help would be much appreciated. I can get round this using the MS xsd tool, which allows both serialisation and deserialisation with the same generated code, but doesnt have all the handy features xds2code adds.

Created Unassigned: Warning CS0472 - With DataBinding option [16932]

$
0
0
If the DataBinding option is turned on and the XSD contains elements that map to value types (e.g. xs:unsignedInt) Xsd2Code produces code with checks that are invalid (always evaluate to true).

Example

```
public virtual int NumWidgets
{
set
{
if ( (this.numWidgetsField != null) ) // This check generates compiler warning CS0472
{
}
}
}
```

New Post: Serialize() can create xml that is not valid

$
0
0
Hello,
I always thought, that an xml-string that was created with the Serialize() method should be valid.
So is there no XML-Validation involved with the Serialize-Method? shoul i additionally validate the created xml against the schema after Serialize() ?

I have the case, that when im filling a stringMember with over 4000 chars, and the element is defined as max 4000 in the xsd-schema, that Serialize will create an xml that is not valid.

Thanx for your answers!

Greets a.s.

New Post: Uninstaller doesn't clean up properly !!!

$
0
0
I installed by mistake the XSD2CODE++ version which apparently is a licensed version.

I then uninstalled it and installed XSD2CODE Community Edition instead (without reboot)

XSD2CODE C.E. didn't work in VS 2013 (probably because of broken installation)

I then also uninstalled XSD2CODE

I then reboot the machine (Win7 pro x64)

After reboot, i did a search on the system and found tons of XSD2CODE files / libs still on my disk (see below) - this is not acceptible - please make sure that your uninstaller is able to remove all references from the system when uninstalling !

-------------------------------------------------------------------------------------
 Volume in drive C is Samsung840EVO
 Volume Serial Number is 4E44-7429

 Directory of C:\Program Files (x86)

01/08/2014  11:03    <DIR>          Xsd2Code
               0 File(s)              0 bytes

 Directory of C:\Program Files (x86)\Xsd2Code

19/05/2014  19:19            30,720 Xsd2Code.Addin.dll
01/06/2014  10:06            27,136 Xsd2Code.Common.dll
19/05/2014  19:19            36,864 Xsd2Code.exe
19/05/2014  19:19           131,072 Xsd2Code.Library.Dll
               4 File(s)        225,792 bytes

 Directory of C:\ProgramData\Microsoft\VisualStudio\10.0\AddIns

01/08/2014  11:07            42,462 Xsd2Code.AddIn.AddIn
               1 File(s)         42,462 bytes

 Directory of C:\ProgramData\Microsoft\VisualStudio\12.0\AddIns

01/08/2014  11:07            42,462 Xsd2Code.AddIn.AddIn
01/08/2014  10:50            42,362 Xsd2Code.AddIn.AddIn_
               2 File(s)         84,824 bytes

 Directory of C:\Users\All Users\Microsoft\VisualStudio\10.0\AddIns

01/08/2014  11:07            42,462 Xsd2Code.AddIn.AddIn
               1 File(s)         42,462 bytes

 Directory of C:\Users\All Users\Microsoft\VisualStudio\12.0\AddIns

01/08/2014  11:07            42,462 Xsd2Code.AddIn.AddIn
01/08/2014  10:50            42,362 Xsd2Code.AddIn.AddIn_
               2 File(s)         84,824 bytes

 Directory of C:\Users\mkirk\AppData\Local\Microsoft\Internet Explorer\DOMStore\4AGMNQUD

01/08/2014  11:05               282 xsd2code.codeplex[1].xml
               1 File(s)            282 bytes

 Directory of C:\Users\mkirk\AppData\Local\Temp

01/08/2014  10:49    <DIR>          xsd2code
               0 File(s)              0 bytes

 Directory of C:\Users\mkirk\AppData\Roaming

01/08/2014  10:49    <DIR>          xsd2code
               0 File(s)              0 bytes

 Directory of C:\Users\mkirk\Documents

01/08/2014  10:49    <DIR>          Xsd2code
               0 File(s)              0 bytes

 Directory of C:\Users\mkirk\Downloads

01/08/2014  10:50         1,089,536 Xsd2Code.Setup.msi
               1 File(s)      1,089,536 bytes

 Directory of C:\Windows\assembly\GAC_MSIL

01/08/2014  10:47    <DIR>          Xsd2Code.Common
               0 File(s)              0 bytes

 Directory of C:\Windows\assembly\temp\F3BY5E7PXO

01/08/2014  10:47            27,136 Xsd2Code.Common.dll
               1 File(s)         27,136 bytes

 Directory of C:\Windows\Microsoft.NET\assembly\GAC_MSIL

01/08/2014  10:47    <DIR>          Xsd2Code.CustomTool
01/08/2014  10:47    <DIR>          Xsd2Code.Library
               0 File(s)              0 bytes

     Total Files Listed:
              13 File(s)      1,597,318 bytes
               7 Dir(s)  116,120,821,760 bytes free

Commented Unassigned: Bug: Error with Nesting Arrays [16766]

$
0
0
Hi,

i think this this a bug.

I have a xsd with complex Typ like this:

<xs:element name="TabOPS" type="TabOPS" />

<xs:complexType name="TabOPS">
<xs:sequence>
<xs:element name="OPSSchluessel" type="OPSSchluessel" minOccurs="0" maxOccurs="unbounded">
</xs:element>
</xs:sequence>
</xs:complexType>

<xs:complexType name="OPSSchluessel">
<xs:sequence>
<xs:element name="Schluessel" type="xs:string" minOccurs="0" maxOccurs="unbounded">
</xs:element>
</xs:sequence>
</xs:complexType>

the genarate code looks like that:

private string[] tabOPSField;

[System.Xml.Serialization.XmlArrayItemAttribute("OPSSchluessel", IsNullable=false)]
[System.Xml.Serialization.XmlArrayItemAttribute("Schluessel", IsNullable=false, NestingLevel=1)]
public string[] TabOPS {
get {
return this.tabOPSField;
}
set {
this.tabOPSField = value;
}
}

The fix is: It must be a nested Array

private string[][] tabOPSField;

[System.Xml.Serialization.XmlArrayItemAttribute("OPSSchluessel", IsNullable=false)]
[System.Xml.Serialization.XmlArrayItemAttribute("Schluessel", IsNullable=false, NestingLevel=1)]
public string[][] TabOPS {
get {
return this.tabOPSField;
}
set {
this.tabOPSField = value;
}
}
Comments: ** Comment from web user: DonZoeggerle **

Resolves an issue when you have:

a complex maxoccurs = 1
b complex maxoccurs = unbounded
c complex maxoccurs = unbounded
d simple restriction string

gets generated as

class a
{
List<c> bField;
}
,but needs to be
class a
{
List<b> bField;
}

Don


New Post: XSD element names

$
0
0
Hi ,,
    I am trying to generate code using XSD 4.3. When classes generates all classeses are generated with name append 'Type'. for example XSD element with name Person is generated in class name "PersonType" . 
Can we turn off this behavior ?

Thanks

Commented Issue: Issue with XmlChoiceIdentifier and enums [9877]

$
0
0
Hello,
I use the last version (3.0) and I have some big issues while creating XmlSerializer with classes generated from NewsML-G2 xsd files.
http://www.iptc.org/std/NewsML-G2/NewsML-G2_2.4.zip
 
During the runtime, when I create the serializer, a lot of innerexception leads to the exception:
"Type of choice identifier 'ItemElementName' is inconsisitent with type of 'Item'. Please use List<>... of <namespace>.ItemChoiceType."
The thing is that the XmlChoiceIdentifierAttribute is correctly ItemElementName, and the ItemElementName is of the list<ItemChoiceType>.
 
Then I try to generate the same class, but this type with arrays instead of List. Then it says:
"Type ItemsChoiceType is missing enumeration value 'Items' for element 'Items' from namespace ''.""
 
So ok, I tried to add Items in the enum, and it goes to the next issue which is the same but in another type.
I feel this is a mistake in the class generator, but I don't really understand why it needs the type Items in the enum? Is this a bug, a mistake in the schema?
Please help!
Comments: ** Comment from web user: jeroenn **

@Talon_za this is no fix. Reread question.

Anyone having a solution to this problem yet?

Commented Issue: Issue with XmlChoiceIdentifier and enums [9877]

$
0
0
Hello,
I use the last version (3.0) and I have some big issues while creating XmlSerializer with classes generated from NewsML-G2 xsd files.
http://www.iptc.org/std/NewsML-G2/NewsML-G2_2.4.zip
 
During the runtime, when I create the serializer, a lot of innerexception leads to the exception:
"Type of choice identifier 'ItemElementName' is inconsisitent with type of 'Item'. Please use List<>... of <namespace>.ItemChoiceType."
The thing is that the XmlChoiceIdentifierAttribute is correctly ItemElementName, and the ItemElementName is of the list<ItemChoiceType>.
 
Then I try to generate the same class, but this type with arrays instead of List. Then it says:
"Type ItemsChoiceType is missing enumeration value 'Items' for element 'Items' from namespace ''.""
 
So ok, I tried to add Items in the enum, and it goes to the next issue which is the same but in another type.
I feel this is a mistake in the class generator, but I don't really understand why it needs the type Items in the enum? Is this a bug, a mistake in the schema?
Please help!
Comments: ** Comment from web user: mightymuke **

The patch in this ticket http://xsd2code.codeplex.com/workitem/14767 worked for me.

Commented Issue: Issue with XmlChoiceIdentifier and enums [9877]

$
0
0
Hello,
I use the last version (3.0) and I have some big issues while creating XmlSerializer with classes generated from NewsML-G2 xsd files.
http://www.iptc.org/std/NewsML-G2/NewsML-G2_2.4.zip
 
During the runtime, when I create the serializer, a lot of innerexception leads to the exception:
"Type of choice identifier 'ItemElementName' is inconsisitent with type of 'Item'. Please use List<>... of <namespace>.ItemChoiceType."
The thing is that the XmlChoiceIdentifierAttribute is correctly ItemElementName, and the ItemElementName is of the list<ItemChoiceType>.
 
Then I try to generate the same class, but this type with arrays instead of List. Then it says:
"Type ItemsChoiceType is missing enumeration value 'Items' for element 'Items' from namespace ''.""
 
So ok, I tried to add Items in the enum, and it goes to the next issue which is the same but in another type.
I feel this is a mistake in the class generator, but I don't really understand why it needs the type Items in the enum? Is this a bug, a mistake in the schema?
Please help!
Comments: ** Comment from web user: jeroenn **

@mightymuke I figured we'll have to build the xsd2code from source with that patch. Can you maybe leave a link here to your binary?

Commented Issue: Issue with XmlChoiceIdentifier and enums [9877]

$
0
0
Hello,
I use the last version (3.0) and I have some big issues while creating XmlSerializer with classes generated from NewsML-G2 xsd files.
http://www.iptc.org/std/NewsML-G2/NewsML-G2_2.4.zip
 
During the runtime, when I create the serializer, a lot of innerexception leads to the exception:
"Type of choice identifier 'ItemElementName' is inconsisitent with type of 'Item'. Please use List<>... of <namespace>.ItemChoiceType."
The thing is that the XmlChoiceIdentifierAttribute is correctly ItemElementName, and the ItemElementName is of the list<ItemChoiceType>.
 
Then I try to generate the same class, but this type with arrays instead of List. Then it says:
"Type ItemsChoiceType is missing enumeration value 'Items' for element 'Items' from namespace ''.""
 
So ok, I tried to add Items in the enum, and it goes to the next issue which is the same but in another type.
I feel this is a mistake in the class generator, but I don't really understand why it needs the type Items in the enum? Is this a bug, a mistake in the schema?
Please help!
Comments: ** Comment from web user: mightymuke **

Added my custom built version. It contains various patch fixes that we needed.

Created Unassigned: How to create Seperate C# files for Different XSD's [16962]

$
0
0
Hi,
I have around 6 XSD's in my project. One Main Xsd will refer other Xsd's in it. when i generate C# classes using Xsd2Code on the main Xsd, a single C# file is generated with a single Namespace. I want to keep my classes modular and independent of others and use required classes when needed. Is there any way of generating seperate classes with different NameSpace for different Xsd's ? Awaiting your response.

Thanks,
RK

Commented Issue: option ExcludeIncludedTypes doesn't work if type name matches element name [14775]

$
0
0
I observed the same behaviour as discussed in http://xsd2code.codeplex.com/discussions/255437(Xsd2Code Version 3.5.0.40152) I found that the ExcludeIncludedTypes option work as expected when I choose 'exclude' type names that matches NO element name in the xsd for which I want to generate code. In opposite when a matching is found the generated code is as ExcludeIncludedTypes were never be set. E.g. these XSDs are creating successful results  main.xsd:  with ReturnType.xsd:  But these XSDs are failing to provide proper results main.xsd: <== difference ! with ReturnType.xsd:  The only difference is the used complex type with name 'Return' in opposite to 'ReturnType' as in the successful example.
Comments: ** Comment from web user: ramk_chirra **

latest relase is xsd2code community edition 3.4. so when is relase 3.6 out?


Commented Issue: Issue with XmlChoiceIdentifier and enums [9877]

$
0
0
Hello,
I use the last version (3.0) and I have some big issues while creating XmlSerializer with classes generated from NewsML-G2 xsd files.
http://www.iptc.org/std/NewsML-G2/NewsML-G2_2.4.zip
 
During the runtime, when I create the serializer, a lot of innerexception leads to the exception:
"Type of choice identifier 'ItemElementName' is inconsisitent with type of 'Item'. Please use List<>... of <namespace>.ItemChoiceType."
The thing is that the XmlChoiceIdentifierAttribute is correctly ItemElementName, and the ItemElementName is of the list<ItemChoiceType>.
 
Then I try to generate the same class, but this type with arrays instead of List. Then it says:
"Type ItemsChoiceType is missing enumeration value 'Items' for element 'Items' from namespace ''.""
 
So ok, I tried to add Items in the enum, and it goes to the next issue which is the same but in another type.
I feel this is a mistake in the class generator, but I don't really understand why it needs the type Items in the enum? Is this a bug, a mistake in the schema?
Please help!
Comments: ** Comment from web user: atlcode **

@mightymuke - I'm new to applying .patch files and it appears that the underlying code in CodeExtension.cs has changed enough that I'm getting a number of Rejected Patch hunks from SVN. Would you have a few minutes to review the patch file and then let me know if I should attempt a manual patch effort?[0A]I appreciate your assistance! Thanks!

Commented Issue: Issue with XmlChoiceIdentifier and enums [9877]

$
0
0
Hello,
I use the last version (3.0) and I have some big issues while creating XmlSerializer with classes generated from NewsML-G2 xsd files.
http://www.iptc.org/std/NewsML-G2/NewsML-G2_2.4.zip
 
During the runtime, when I create the serializer, a lot of innerexception leads to the exception:
"Type of choice identifier 'ItemElementName' is inconsisitent with type of 'Item'. Please use List<>... of <namespace>.ItemChoiceType."
The thing is that the XmlChoiceIdentifierAttribute is correctly ItemElementName, and the ItemElementName is of the list<ItemChoiceType>.
 
Then I try to generate the same class, but this type with arrays instead of List. Then it says:
"Type ItemsChoiceType is missing enumeration value 'Items' for element 'Items' from namespace ''.""
 
So ok, I tried to add Items in the enum, and it goes to the next issue which is the same but in another type.
I feel this is a mistake in the class generator, but I don't really understand why it needs the type Items in the enum? Is this a bug, a mistake in the schema?
Please help!
Comments: ** Comment from web user: mightymuke **

@atlcode Sorry, I haven't looked at this in a very long time (and I believe that since I looked at it the main developer here has reverted back to an earlier version), so the patch is likely to be out of date. Also I don't have an easy way to test it as I've since changed jobs and I no longer deal with anything remotely like this. However, I have included a built version in xsd2code.zip if its of any use to you.

Commented Issue: Issue with XmlChoiceIdentifier and enums [9877]

$
0
0
Hello,
I use the last version (3.0) and I have some big issues while creating XmlSerializer with classes generated from NewsML-G2 xsd files.
http://www.iptc.org/std/NewsML-G2/NewsML-G2_2.4.zip
 
During the runtime, when I create the serializer, a lot of innerexception leads to the exception:
"Type of choice identifier 'ItemElementName' is inconsisitent with type of 'Item'. Please use List<>... of <namespace>.ItemChoiceType."
The thing is that the XmlChoiceIdentifierAttribute is correctly ItemElementName, and the ItemElementName is of the list<ItemChoiceType>.
 
Then I try to generate the same class, but this type with arrays instead of List. Then it says:
"Type ItemsChoiceType is missing enumeration value 'Items' for element 'Items' from namespace ''.""
 
So ok, I tried to add Items in the enum, and it goes to the next issue which is the same but in another type.
I feel this is a mistake in the class generator, but I don't really understand why it needs the type Items in the enum? Is this a bug, a mistake in the schema?
Please help!
Comments: ** Comment from web user: atlcode **

@mightymuke - I appreciate the update. I'll take a look at the built version. Thanks!

Commented Issue: Issue with XmlChoiceIdentifier and enums [9877]

$
0
0
Hello,
I use the last version (3.0) and I have some big issues while creating XmlSerializer with classes generated from NewsML-G2 xsd files.
http://www.iptc.org/std/NewsML-G2/NewsML-G2_2.4.zip
 
During the runtime, when I create the serializer, a lot of innerexception leads to the exception:
"Type of choice identifier 'ItemElementName' is inconsisitent with type of 'Item'. Please use List<>... of <namespace>.ItemChoiceType."
The thing is that the XmlChoiceIdentifierAttribute is correctly ItemElementName, and the ItemElementName is of the list<ItemChoiceType>.
 
Then I try to generate the same class, but this type with arrays instead of List. Then it says:
"Type ItemsChoiceType is missing enumeration value 'Items' for element 'Items' from namespace ''.""
 
So ok, I tried to add Items in the enum, and it goes to the next issue which is the same but in another type.
I feel this is a mistake in the class generator, but I don't really understand why it needs the type Items in the enum? Is this a bug, a mistake in the schema?
Please help!
Comments: ** Comment from web user: Andre_ **

Ok so i think i might have a good solution having spent some time reading this post and coming up with a working end result

so, after you run XSD2Code you might have a construct like this

```
'my container for my objects of type
Private itemsField As List(Of AdditionalReference3)
'my container for the ChoiceType
Private itemsElementNameField As List(Of ItemsChoiceType)

<System.Xml.Serialization.XmlElementAttribute("OthrRef", GetType(AdditionalReference3), Order:=1), _
System.Xml.Serialization.XmlElementAttribute("RltdRef", GetType(AdditionalReference3), Order:=1), _
System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName"), _
System.Xml.Serialization.XmlIgnoreAttribute()> _
Public Property Items() As List(Of AdditionalReference3)
Get
Return Me.itemsField
End Get
Set(value As List(Of AdditionalReference3))
Me.itemsField = value
End Set
End Property
<System.Xml.Serialization.XmlElementAttribute("ItemsElementName", Order:=2), _
System.Xml.Serialization.XmlIgnoreAttribute()> _
Public Property ItemsElementName() As List(Of ItemsChoiceType)
Get
Return Me.itemsElementNameField
End Get
Set(value As List(Of ItemsChoiceType))
Me.itemsElementNameField = Value
End Set
End Property
```
Then you run into problems as was correctly mentioned the xmlserialiser cannot handle collections of T when dealing with multiple choicetypes, so when you have a pattern that uses attribute XmlChoiceIdentifierAttribute that points to a collection of ItemChoiceType, you run into this issue. So we move the properties to arrays, first lets see what the code change is when building the class in code as opposed to consuming an XML doc

basically if you are late binding as I am then you move from this type of declaration and construct when building from code

```
'Assiging the choicetype
tst.OrdrInstrStsRptV03.ItemsElementName = New List(Of OrderInstructionStatusReportV03.ItemsChoiceType)
tst.OrdrInstrStsRptV03.ItemsElementName.Add(OrderInstructionStatusReportV03.ItemsChoiceType.RltdRef)
'assigning the item itself
tst.OrdrInstrStsRptV03.Items = New List(Of OrderInstructionStatusReportV03.AdditionalReference3)
tst.OrdrInstrStsRptV03.Items.Add(New OrderInstructionStatusReportV03.AdditionalReference3 With {.Ref = "123456789"})
```
To this type of code
```
'adding to or creating a new choicetype
tst.OrdrInstrStsRptV03.ItemsElementName = {OrderInstructionStatusReportV03.ItemsChoiceType.RltdRef}
'adding to or creating a new item itself
tst.OrdrInstrStsRptV03.Items = {New OrderInstructionStatusReportV03.AdditionalReference3 With {.Ref = "123456798"}}
```

__Here is the adjusted construct code of the properties, note the private variables can remain collections of T__
```
<System.Xml.Serialization.XmlElementAttribute("OthrRef", GetType(AdditionalReference3), Order:=1), _
System.Xml.Serialization.XmlElementAttribute("RltdRef", GetType(AdditionalReference3), Order:=1), _
System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")> _
Public Property Items() As AdditionalReference3()
Get
Return Me.itemsField.ToArray
End Get
Set(value As AdditionalReference3())
If Me.itemsField Is Nothing Then
Me.itemsField = New List(Of AdditionalReference3)(value.ToList)
Else
value.All(Function(e As AdditionalReference3)
Me.itemsField.Add(e)
End Function)
End If
End Set
End Property

<System.Xml.Serialization.XmlElementAttribute("ItemsElementName", Order:=2), _
System.Xml.Serialization.XmlIgnoreAttribute()> _
Public Property ItemsElementName() As ItemsChoiceType()
Get
Return Me.itemsElementNameField.ToArray
End Get
Set(value As ItemsChoiceType())
If Me.itemsElementNameField Is Nothing Then
Me.itemsElementNameField = New List(Of ItemsChoiceType)(value.ToList)
Else
value.All(Function(e As ItemChoiceType)
Me.itemsElementNameField.Add(e)
End Function)
End If
End Set
End Property
```
Notice the use of linq to itterate through the passed collection and add to the existing collection and when the Get is called on the property, the collections .ToArray event passes back the array

You will need the use of following libraries, which you should already have if you are running into this problem
System.Core.System.Linq
System.Collections.Generic

New Post: Redefine SchemaLocation Error

$
0
0
I'm experiencing the same problem too. Any solution / workaround? Thanks.
Viewing all 543 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>