|
by: JohnnySparkles |
last post by:
Hi everyone,
I'm currently writing an application which uses the XmlSerializer class to
serialize/deserialize objects to/from xml.
Now when deserializing an XmlDocument back into the object, I'm using the
System::Type::GetType(String* typeName) to create a Type* needed to construct
the XmlSerializer.
The typeName argument is taken from the XmlDocument and consists of the
|
by: h |
last post by:
Hi!
I have a user control called ListItemControl. This works ok:
ListItemControl li = new ListItemControl();
When I iterate with Enumerator through all controls using:
IEnumerator e = pnlList.Controls.GetEnumerator();
while (e.MoveNext())
|
by: Jim Bancroft |
last post by:
Hi everyone,
I'm having some trouble with the code below. I receive a compile-time
error on the second line saying "; expected":
private static void myTestFunction(long myLong)
{
System.Data.SqlTypes.SqlInt32 myTestInt;
|
by: Bob |
last post by:
This has been bugging me for a while now.
GetType isn't availble for variables decalred as interface types, I have to
DirectCast(somevariable, Object).
In example:
Sub SomeSub(ByVal Dictionary as IDictionary)
If Dictionary is Nothing Then Return
Dim o as Object = DirectCast(Dictionary, Object)
|
by: Jennyfer Barco |
last post by:
Hello I have a question. I have a project called "Primary" and in that
project I have a reference to a Com application called "engine". In "engine"
I have a function that does many things and calls other local functions for
several purposes. In one of those functions I have the code:
Dim myType As Type
Application_AssemblyName = "Primary"
|
|
by: Paul |
last post by:
I have two projects in one solution. One is called Frontier and holds
all my base user controls, classes, etc. that are used over multiple
applications. The second is my application project (OCFU) which holds
the forms and code that the users run. I need to instantiate a new
form only given the form's name in a string. In the calling form in
the OCFU project I used the following code:
Dim objNewForm As Object =...
|
by: Sky |
last post by:
I have been looking for a more powerful version of GetType(string) that will
find the Type no matter what, and will work even if only supplied
"{TypeName}", not the full "{TypeName},{AssemblyName}"
As far as I know yet -- hence this question -- there is no 'one solution
fits all', but instead there are several parts that have to be put together
to check.
What I have so far is, and would like as much feedback as possible to ensure
I've...
|
by: Ron M. Newman |
last post by:
Hi,
I have a certain assembly that needs to create instances of objects where
the object class is passed as a string (e.g. "System.Drawing.Bitmap"). I
have found that calling "GetType" on this string, returns null.
Naturally, I suspect that because the this assembly doesn't reference the
assembly containing "System.Drawing.Bitmap", the type cannot be found and
thus I'm getting null in the GetType.
|
by: Steph |
last post by:
hello,
i want to find the type from a generic... like :
public static john<T>(object obj, T myControl)
{
((myControl.getType())myControl).OnClientClick ="code";
}
because my generic var can be a Button, LinkButton, ... with "OnClientClick
" event.
and i dont want use :
|
by: TonyJ |
last post by:
Hello!!
This first expression return System.Int32. The type that is returned is a
string. This is perfect understandable.
Console.WriteLine(7.GetType().FullName);
In this second expression is the same returned System.Int32. The type that
is returned is System.RuntimeType
Console.WriteLine(7.GetType());
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|