No announcements
Found 2491067 threads
-
0 Votes
SSIS Type Casting
Refer to this link for msdn help which has details of syntax and the possible casting options.Answered | 4 Replies | 2002 Views | Created by Ven Raja - Tuesday, June 4, 2013 7:25 AM | Last reply by Ven Raja - Tuesday, June 4, 2013 8:20 AM -
4 Votes
Using the generic type "System.Collections.ObjectModel.Collection<T> require 1 type argument
You could change the t++ to t = (t + 1) % 10.Answered | 5 Replies | 1400 Views | Created by JCTANN - Monday, September 22, 2014 9:26 AM | Last reply by Oliver Ulm - Wednesday, September 24, 2014 7:42 AM -
3 Votes
Unable to cast object of type 'System.Boolean[]' to type 'System.Object[]' When Thread started
I don`t know what OP is really doing so, i don`t know if that would work ether.Answered | 12 Replies | 1283 Views | Created by TomAndClancy - Friday, July 24, 2015 8:50 PM | Last reply by IronRazerz - Sunday, July 26, 2015 12:31 PM -
1 Votes
Need Help in casting object variable with Type
Hi there, As I can see (read): the receiver has to know about the dataType of the sender try this : [Datacontract] class myClass { ...Answered | 6 Replies | 1926 Views | Created by eva2002 - Thursday, March 1, 2012 2:02 AM | Last reply by Alexander Sun - Friday, March 2, 2012 8:55 AM -
0 Votes
Generic Null T Nullable
Scenario : A generic method to return the value of SQL SQL have DBNulls therefore having a Generic returning the real value of SQL is ...Answered | 7 Replies | 25232 Views | Created by Dynamic - Thursday, March 19, 2009 2:15 PM | Last reply by GearWorld - Thursday, February 28, 2013 3:29 PM -
2 Votes
Generic types problem
In addition to the existing answer, you should also be able to check the type like this: Dim t As Type = objectOfInterest.GetType 'is it an array?Answered | 2 Replies | 610 Views | Created by Abdu Rahman - Sunday, March 29, 2015 3:00 PM | Last reply by Reed Kimble - Sunday, March 29, 2015 6:07 PM -
1 Votes
The type 'DocumentFormat.OpenXml.Packaging.CustomXmlPart' cannot be used as type parameter 'T'
If you have any question, please let me know.Answered | 11 Replies | 19823 Views | Created by de5a1n7 - Saturday, January 16, 2010 4:20 AM | Last reply by Siggy01 - Thursday, March 25, 2010 8:32 PM -
2 Votes
cast object of type 'System.Xml.Linq.XElement' to type 'Microsoft.BizTalk.Message.Interop.IBaseMessage'
Now i have to cast object of type 'System.Xml.Linq.XDocument' to type XML Document.Answered | 7 Replies | 2452 Views | Created by Mr Anil - Wednesday, August 17, 2016 12:23 PM | Last reply by Johns-305 - Thursday, August 18, 2016 12:23 PM -
0 Votes
type casting Question
You invoke GetType on an existing object to get its Type object.Answered | 1 Replies | 3322 Views | Created by Jinaga Venkatesh - Sunday, June 15, 2008 11:53 AM | Last reply by Lasse V. Karlsen - Sunday, June 15, 2008 11:59 AM -
0 Votes
Unable to cast object of type 'System.String[*]' to type 'System.String[]'
You can copy the data into a zero-based array: Array serverListAsArray = (Array)serverList; string[] strings = new ...Answered | 1 Replies | 6176 Views | Created by ctrewartha - Monday, May 3, 2010 11:43 PM | Last reply by Jason Kresowaty - Tuesday, May 4, 2010 12:14 AM -
29 Votes
Dynamic Casting in C# at runtime
Do you have any generic solution that can be applied to all types?Answered | 39 Replies | 357715 Views | Created by Kamran Shahid - Tuesday, May 2, 2006 11:51 AM | Last reply by pavanarya - Tuesday, July 17, 2012 9:47 AM -
2 Votes
Unable to cast object of type 'System.Data.DataTable' to type 'myStronglyTypedDataTable'.
The overload can still be of type DataTable, you can pass your typed datatable instance to this method: MyTypedDataTable dt = new ...Answered | 8 Replies | 14925 Views | Created by Hamed_1983 - Sunday, March 27, 2011 9:45 AM | Last reply by Rambod Taati - Sunday, October 26, 2014 1:13 PM -
3 Votes
Type Casting
Perhaps there's a method on ObjectB that you want to call; since C# is (mostly) type-safe, you have to write code that the compiler cal validate.Answered | 5 Replies | 3490 Views | Created by Software Crafter - Friday, November 19, 2010 9:40 AM | Last reply by Louis.fr - Monday, January 3, 2011 4:22 PM -
3 Votes
Unable to cast object of type 'X' to type 'X'
The error is: Unable to cast object of type 'System.ComponentModel.Container' to type 'System.Type'.Answered | 30 Replies | 121553 Views | Created by Juan Ignacio Gelos - Tuesday, December 13, 2005 12:42 PM | Last reply by BBirajdar - Tuesday, January 19, 2010 7:32 AM -
0 Votes
Need to know about Generics ???
The generic type parameter is a placeholder for an actual type name to be furnished at compile time by you the developer.Answered | 5 Replies | 3039 Views | Created by HESHAM HEMDAN - Monday, June 22, 2009 2:49 PM | Last reply by HESHAM HEMDAN - Monday, June 22, 2009 6:25 PM -
1 Votes
Unable to cast object of type
>the problem is"SelectedValue" but I don't know exactly how to fix it.Answered | 6 Replies | 782 Views | Created by atarpan - Tuesday, June 2, 2015 4:07 AM | Last reply by Edward8520 - Monday, June 8, 2015 5:43 AM -
0 Votes
CAST or CONVERT: invalid attributes specified for type 'datetime' Sql Server 2008
We have a DATE data type!Answered | 4 Replies | 6915 Views | Created by Jo13 - Monday, August 27, 2012 5:46 PM | Last reply by --CELKO-- - Wednesday, September 5, 2012 7:48 PM -
0 Votes
Problem in type Casting float to unsigned char*
The problem that i m getting in this code is when i try to use WriteHeadAndBuffer(kwdId,sizeof(float),(unsigned char*)&f); In the below code i m not getting correct value(Don't ...Answered | 10 Replies | 6273 Views | Created by Kalpeshkumar B. Patel - Friday, March 12, 2010 5:48 PM | Last reply by ildjarn - Saturday, March 13, 2010 11:04 AM -
1 Votes
Unable TO CAST object of TYPE 'System.Byte[]' TO TYPE 'System.IConvertible'.
Check the type being returned from the database.Answered | 1 Replies | 6517 Views | Created by Raymond Chiu - Thursday, December 29, 2011 10:00 PM | Last reply by Rudedog2 - Thursday, December 29, 2011 11:59 PM -
0 Votes
A generic type conversion problem
I am seeking a tactics for designing a generic-purpose type converter.Answered | 15 Replies | 8557 Views | Created by Ricky Wang - Tuesday, May 29, 2007 7:39 AM | Last reply by The Big - Tuesday, September 2, 2008 1:58 PM
No announcements