Click here to Skip to main content
15,923,164 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Application.Idle event Pin
Andy *M*7-Mar-04 11:28
Andy *M*7-Mar-04 11:28 
QuestionA monitor for open networkfiles? Pin
Franz Pentenrieder6-Mar-04 5:55
Franz Pentenrieder6-Mar-04 5:55 
AnswerRe: A monitor for open networkfiles? Pin
ian mariano6-Mar-04 6:43
ian mariano6-Mar-04 6:43 
Generalabout receive udp message using C#( socket class) Pin
yu-yu4-Mar-04 23:32
yu-yu4-Mar-04 23:32 
GeneralCalling VB.Net dll functions in COM dll help Pin
bhartik4-Mar-04 19:40
bhartik4-Mar-04 19:40 
GeneralRe: Calling VB.Net dll functions in COM dll help Pin
Nick Parker9-Mar-04 6:39
protectorNick Parker9-Mar-04 6:39 
GeneralGetting an Interface from a generic object Pin
Daniel Soderberg4-Mar-04 16:02
Daniel Soderberg4-Mar-04 16:02 
GeneralRe: Getting an Interface from a generic object Pin
ian mariano6-Mar-04 6:52
ian mariano6-Mar-04 6:52 
Are you sure the item at MyArrayList[3] is an instance of an object that implements IMyInterface?

You should be able to cast by just writing (C#):

IMyInterface iface = (IMyInterface)myArrayList[3];


You can check if an object implements a certain interface as follows (this assumes testObject is the object you're testing for it's definition):

if (!typeof(IMyInterface).IsAssignableFrom(testObject))
   throw new ApplicationException("Object {0} doesn't support IMyInterface", testObject.GetType());
 
//  use the interface
IMyInterface  iface = (IMyInterface)testObject;
 
iface.SomeMethod();



Ian Mariano - http://www.ian-space.com/


"We are all wave equations in the information matrix of the universe" - me

GeneralRe: Getting an Interface from a generic object Pin
Daniel Soderberg6-Mar-04 7:41
Daniel Soderberg6-Mar-04 7:41 
GeneralRe: Getting an Interface from a generic object Pin
Jonathan de Halleux7-Mar-04 21:56
Jonathan de Halleux7-Mar-04 21:56 
GeneralProblems with Crystal Pin
Jamie Nordmeyer4-Mar-04 12:32
Jamie Nordmeyer4-Mar-04 12:32 
GeneralPropertyGrid - browsable attribute Pin
jbmeeh3-Mar-04 6:56
jbmeeh3-Mar-04 6:56 
GeneralRe: PropertyGrid - browsable attribute Pin
ian mariano3-Mar-04 10:54
ian mariano3-Mar-04 10:54 
Generalchart needed for .NET framework Pin
Patric_J2-Mar-04 5:59
Patric_J2-Mar-04 5:59 
GeneralRe: chart needed for .NET framework Pin
Marcie Jones3-Mar-04 3:44
Marcie Jones3-Mar-04 3:44 
GeneralClearing JIT buffer Pin
Yaron K.2-Mar-04 2:07
Yaron K.2-Mar-04 2:07 
GeneralRe: Clearing JIT buffer Pin
ian mariano4-Mar-04 11:22
ian mariano4-Mar-04 11:22 
General.Net listbox Pin
HCassidy1-Mar-04 10:14
HCassidy1-Mar-04 10:14 
GeneralMakeTransparent Pin
Member 1318591-Mar-04 8:33
Member 1318591-Mar-04 8:33 
GeneralSQLState error 9999B, SQLCODE 999999800 Pin
Lola Copinga1-Mar-04 7:23
Lola Copinga1-Mar-04 7:23 
GeneralFullscreen / Windowed mode toggle Pin
Steve Messer28-Feb-04 20:37
Steve Messer28-Feb-04 20:37 
GeneralSingle Instance issue Pin
Steve Messer28-Feb-04 20:32
Steve Messer28-Feb-04 20:32 
GeneralImageFormat Pin
Jon Sagara27-Feb-04 22:14
Jon Sagara27-Feb-04 22:14 
GeneralRe: ImageFormat Pin
David Stone27-Feb-04 23:04
sitebuilderDavid Stone27-Feb-04 23:04 
GeneralRe: ImageFormat Pin
Jon Sagara28-Feb-04 7:47
Jon Sagara28-Feb-04 7:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.