I have generated CS class from an Xml schema using xsd.exe. One class contains an enum, ItemsChoiceType1, that containts XmlElementAttribute values, DUNS, DUNSPlus4, GLN, AlternativeIdentifier. I think that I need to set the value for the constants, but I cannot figure out how to do so. - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
-
[System.SerializableAttribute()]
-
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:rosettanet:specification:universal:PartnerIdentification:xsd:schema:01.06", IncludeInSchema = false)]
-
public enum ItemsChoiceType1
-
{
-
-
/// <remarks/>
-
[System.Xml.Serialization.XmlEnumAttribute("urn:rosettanet:specification:universal:DataType:xsd:schema:01.03:DUNS")]
-
DUNS,
-
-
/// <remarks/>
-
[System.Xml.Serialization.XmlEnumAttribute("urn:rosettanet:specification:universal:DataType:xsd:schema:01.03:DUNSPlus4")]
-
DUNSPlus4,
-
-
/// <remarks/>
-
[System.Xml.Serialization.XmlEnumAttribute("urn:rosettanet:specification:universal:DataType:xsd:schema:01.03:GLN")]
-
GLN,
-
-
/// <remarks/>
-
[System.Xml.Serialization.XmlEnumAttribute("urn:rosettanet:specification:universal:Locations:xsd:schema:01.03:AlternativeIden" +
-
"tifier")]
-
AlternativeIdentifier,
-
}
- Items = new object[]
-
{
-
new ItemsChoiceType1()
-
{
-
//DUNS
-
//DUNSPlus4
-
//GLN
-
//AlternativeIdentifier
-
},
-
},
1 2811 - PartnerIdentification = new PartnerIdentificationType()
-
{
-
PartnerName = results[2],
-
Items = new object[]
-
{
-
distDUNS,
-
},
-
ItemsElementName = new ItemsChoiceType1[]
-
{
-
ItemsChoiceType1.DUNS,
-
}
-
},
This thread should probably be deleted.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Imran |
last post by:
Hello All
I have a enum decla like this
enum Days // Declare enum type Days
{
saturday, // saturday = 0 by default
sunday = 0, // sunday = 0 as well
monday, ...
|
by: Simon |
last post by:
Hi all,
I think I've seen someone passing an emumeration in code before.
Can anyone tell me if thats possible and why i would want to.
Many thanks
Kindest Regards
|
by: Visual Systems AB \(Martin Arvidsson\) |
last post by:
Hi!
I have created an enum list like this:
enum myEnum : int
{
This = 2,
That,
NewVal = 10,
LastItm
|
by: Toska |
last post by:
Hi,
Wonder how I can convert a string value to enum value.
Code
-------------------
<appSettings>
<add key="BaseType" value="Sand" />
</appSettings>
|
by: veerleverbr |
last post by:
Suppose having define an enum like this:
public enum SomeEnum
{
Something,
SomethingElse
}
|
by: Harris |
last post by:
Dear all,
I have the following codes:
======
public enum Enum_Value
{
Value0 = 0,
Value1 = 10,
|
by: Steven Nagy |
last post by:
So I was needing some extra power from my enums and implemented the
typesafe enum pattern.
And it got me to thinking... why should I EVER use standard enums?
There's now a nice little code...
|
by: Lucky |
last post by:
Hi guys,
i was working with Enum and one Question strike, i thought it would be
good idea to ask more experience guys around.
the scenerio is like this :
public enum check
{
|
by: John A Grandy |
last post by:
To convert DataRow column values to enum types , I am using :
MyEnum myEnumValue = (MyEnum )Enum.Parse( typeof( MyEnum ),
((int)row).ToString() );
Is there an easier way ?
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |