473,408 Members | 2,027 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

VB.NET codeDom

Attempting to add a property to a class using
CodePropertySetValueReferenceExpression to add the set statement does not add
(byval value as <type>) so using te property fails. Any ideas?

MikeG
Jul 21 '05 #1
5 1518

Hi Mike..

What error you are getting ? There is an excellent example on MSDN which
helps you for this...

http://msdn.microsoft.com/library/de...ClassTopic.asp

HTH

With Best Regards
Naveen K S

"MikeG" wrote:
Attempting to add a property to a class using
CodePropertySetValueReferenceExpression to add the set statement does not add
(byval value as <type>) so using te property fails. Any ideas?

MikeG

Jul 21 '05 #2
Thanks Naveen,

I dont get an error as such, the property is created as

Private Property integerProperty() As Integer
Get
Return Me.integerField
End Get
Set
Me.integerField = value
End Set
End Property

whereas it should be

Private Property integerProperty() As Integer
Get
Return Me.integerField
End Get
Set(ByVal Value As Integer)
Me.integerField = value
End Set
End Property

and so the application created does not work and it returns the error

"System.MissingMethodException: Method not found: Void
LEATESTNamespace.cLEADataEntity.set_name(System.St ring)."

Regards,

MikeG
"Naveen" wrote:

Hi Mike..

What error you are getting ? There is an excellent example on MSDN which
helps you for this...

http://msdn.microsoft.com/library/de...ClassTopic.asp

HTH

With Best Regards
Naveen K S

"MikeG" wrote:
Attempting to add a property to a class using
CodePropertySetValueReferenceExpression to add the set statement does not add
(byval value as <type>) so using te property fails. Any ideas?

MikeG

Jul 21 '05 #3
Sorry the actual code produced is:

Private Property integerProperty as system.void
Get
Return Me.integerField
End Get
Set
Me.integerField = value
End Set
End Property

whereas it should be

Private Property integerProperty() As Integer
Get
Return Me.integerField
End Get
Set(ByVal Value As Integer)
Me.integerField = value
End Set
End Property

Thanks,

MikeG

"MikeG" wrote:
Thanks Naveen,

I dont get an error as such, the property is created as

Private Property integerProperty() As Integer
Get
Return Me.integerField
End Get
Set
Me.integerField = value
End Set
End Property

whereas it should be

Private Property integerProperty() As Integer
Get
Return Me.integerField
End Get
Set(ByVal Value As Integer)
Me.integerField = value
End Set
End Property

and so the application created does not work and it returns the error

"System.MissingMethodException: Method not found: Void
LEATESTNamespace.cLEADataEntity.set_name(System.St ring)."

Regards,

MikeG
"Naveen" wrote:

Hi Mike..

What error you are getting ? There is an excellent example on MSDN which
helps you for this...

http://msdn.microsoft.com/library/de...ClassTopic.asp

HTH

With Best Regards
Naveen K S

"MikeG" wrote:
Attempting to add a property to a class using
CodePropertySetValueReferenceExpression to add the set statement does not add
(byval value as <type>) so using te property fails. Any ideas?

MikeG

Jul 21 '05 #4
Who access that method? A external program. If yes, change the modifier of
your method to Public.

Also, check if Me.IntegerField is a public property or public variable.
[]s
Cesar


"MikeG" <Mi***@discussions.microsoft.com> wrote in message
news:92**********************************@microsof t.com...
Sorry the actual code produced is:

Private Property integerProperty as system.void
Get
Return Me.integerField
End Get
Set
Me.integerField = value
End Set
End Property

whereas it should be

Private Property integerProperty() As Integer
Get
Return Me.integerField
End Get
Set(ByVal Value As Integer)
Me.integerField = value
End Set
End Property

Thanks,

MikeG

"MikeG" wrote:
Thanks Naveen,

I dont get an error as such, the property is created as

Private Property integerProperty() As Integer
Get
Return Me.integerField
End Get
Set
Me.integerField = value
End Set
End Property

whereas it should be

Private Property integerProperty() As Integer
Get
Return Me.integerField
End Get
Set(ByVal Value As Integer)
Me.integerField = value
End Set
End Property

and so the application created does not work and it returns the error

"System.MissingMethodException: Method not found: Void
LEATESTNamespace.cLEADataEntity.set_name(System.St ring)."

Regards,

MikeG
"Naveen" wrote:

Hi Mike..

What error you are getting ? There is an excellent example on MSDN which
helps you for this...

http://msdn.microsoft.com/library/de...ClassTopic.asp
HTH

With Best Regards
Naveen K S

"MikeG" wrote:
Attempting to add a property to a class using
CodePropertySetValueReferenceExpression to add the set statement does not add (byval value as <type>) so using te property fails. Any ideas?

MikeG

Jul 21 '05 #5
I am closing this call as I have since discovered that the compiled code
produced runs and while the source code generated does not have the (value as
<datatype>) line, this does not appear to matter.

Thanks everyone.

MikeG

"Ronchese" wrote:
Who access that method? A external program. If yes, change the modifier of
your method to Public.

Also, check if Me.IntegerField is a public property or public variable.
[]s
Cesar


"MikeG" <Mi***@discussions.microsoft.com> wrote in message
news:92**********************************@microsof t.com...
Sorry the actual code produced is:

Private Property integerProperty as system.void
Get
Return Me.integerField
End Get
Set
Me.integerField = value
End Set
End Property

whereas it should be

Private Property integerProperty() As Integer
Get
Return Me.integerField
End Get
Set(ByVal Value As Integer)
Me.integerField = value
End Set
End Property

Thanks,

MikeG

"MikeG" wrote:
Thanks Naveen,

I dont get an error as such, the property is created as

Private Property integerProperty() As Integer
Get
Return Me.integerField
End Get
Set
Me.integerField = value
End Set
End Property

whereas it should be

Private Property integerProperty() As Integer
Get
Return Me.integerField
End Get
Set(ByVal Value As Integer)
Me.integerField = value
End Set
End Property

and so the application created does not work and it returns the error

"System.MissingMethodException: Method not found: Void
LEATESTNamespace.cLEADataEntity.set_name(System.St ring)."

Regards,

MikeG
"Naveen" wrote:

Hi Mike..

What error you are getting ? There is an excellent example on MSDN which
helps you for this...

http://msdn.microsoft.com/library/de...ClassTopic.asp
HTH

With Best Regards
Naveen K S

"MikeG" wrote:

> Attempting to add a property to a class using
> CodePropertySetValueReferenceExpression to add the set statement does not add > (byval value as <type>) so using te property fails. Any ideas?
>
> MikeG


Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ron Bullman | last post by:
Hi, I havent been able to find any documentation about @ in the CodeDom context. The problem is when generating C# code from CodeDom it will associate a @-tag with all C# specific types. Why?...
2
by: Guillaume | last post by:
I don't think I'm the only one with this challenge so… I made code with the CodeDom classes and made code to create a new solution and a new project Now I want to get the codedom code in the new...
1
by: John Livermore | last post by:
Hello, We have an application that uses CodeDom for dynamic in-memory compilation of code. The same code (library) is used by both an ASP.net web site and a Windows Service. The code runs fine...
3
by: Alexey Lavnikov | last post by:
I'm playing with CodeDOM and CSharpCodeProvider. I've found the following possibilities: CodeDOM -> Assembly C# Source code -> Assembly I miss the C# Source code -> CodeDOM only. Is it there?...
9
by: lee.chappers | last post by:
How can I make the CodeDom generate the following C# method? protected sealed override void Test() { } I've tried using: domMethod.Attributes = MemberAttributes.Override |...
6
by: moondaddy | last post by:
will CodeDom create XAML windows or just regular windows forms? If so, how to I tell it to create a xaml window instead of a windows form? thanks -- moondaddy@noemail.noemail
2
by: CodeMonkey775 | last post by:
I'm having problems passing a variable to a method which is executed and compiled using CodeDom. The situation is I have a List<CellData> with cells, each containing a formula (like Excel). I am...
1
by: =?Utf-8?B?QU1lcmNlcg==?= | last post by:
I may have painted myself into a corner with GenerateInMemory=true. My app need a custom user step. Users want to code (sort of - they are not programmers) some refinements to a search...
0
by: thisismykindabyte | last post by:
Hello, I was wondering if anyone might know the easiest way to access static methods through a namespace(MyNamespace) from CodeDom generated code? Basically I have this in my...
1
by: thisismykindabyte | last post by:
Hello, I was wondering if anyone could tell me how I can pass a reference of an object(lets pretend a MemoryStream) to CodeDom's generated code in memory? So basically I would like to create...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
jinu1996
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.