Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to make the Asp.Net/WSE asmx page generator add the base class properties in a derived class
    primarykey
    data
    text
    <p>I have a simple base class B with 2 public properties. This class is inherited by another class D that adds another public property. The derived class is returned by a web service call. The page generated by ASP.Net looks like: </p> <pre><code>'''&lt;remarks/&gt; &lt;System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "2.0.50727.3074"), _ System.SerializableAttribute(), _ System.Diagnostics.DebuggerStepThroughAttribute(), _ System.ComponentModel.DesignerCategoryAttribute("code"), _ System.Xml.Serialization.XmlTypeAttribute([Namespace]:="")&gt; _ Partial Public Class D Inherits B Private guidField As String '''&lt;remarks/&gt; Public Property Guid() As String Get Return Me.guidField End Get Set(ByVal value As String) Me.guidField = value End Set End Property End Class '''&lt;remarks/&gt; &lt;System.Xml.Serialization.XmlIncludeAttribute(GetType(D)), _ System.Xml.Serialization.XmlIncludeAttribute(GetType(B)), _ System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "2.0.50727.3074"), _ System.SerializableAttribute(), _ System.Diagnostics.DebuggerStepThroughAttribute(), _ System.ComponentModel.DesignerCategoryAttribute("code"), _ System.Xml.Serialization.XmlTypeAttribute([Namespace]:="")&gt; _ Partial Public MustInherit Class B Private nameField As String Private descriptionField As String '''&lt;remarks/&gt; Public Property Name() As String Get Return Me.nameField End Get Set(ByVal value As String) Me.nameField = value End Set End Property '''&lt;remarks/&gt; Public Property Description() As String Get Return Me.descriptionField End Get Set(ByVal value As String) Me.descriptionField = value End Set End Property End Class </code></pre> <p>Is there any way to show all the public properties (from class B and class D in class D)? Only class D is useful for the web service clients, class B should not be even visible. Thank You</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload