Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
GeneralRe: Detecting low memory Pin
Madmaximus27-Aug-10 4:25
Madmaximus27-Aug-10 4:25 
GeneralRe: Detecting low memory Pin
The Man from U.N.C.L.E.27-Aug-10 6:10
The Man from U.N.C.L.E.27-Aug-10 6:10 
AnswerRe: Detecting low memory Pin
#realJSOP27-Aug-10 4:14
mve#realJSOP27-Aug-10 4:14 
AnswerRe: Detecting low memory Pin
T M Gray27-Aug-10 4:23
T M Gray27-Aug-10 4:23 
AnswerRe: Detecting low memory [modified] Pin
Paul Michalik29-Aug-10 0:38
Paul Michalik29-Aug-10 0:38 
AnswerRe: Detecting low memory Pin
PIEBALDconsult29-Aug-10 4:12
mvePIEBALDconsult29-Aug-10 4:12 
QuestionReflection with Dynamic Objects (System.__ComObject) Pin
Tony Richards27-Aug-10 0:38
Tony Richards27-Aug-10 0:38 
AnswerRe: Reflection with Dynamic Objects (System.__ComObject) [modified] Pin
Paul Michalik27-Aug-10 3:54
Paul Michalik27-Aug-10 3:54 
You cannot query a COM wrapper for CLR properties since it does not have any. Have you tried to extract the properties directly from the assembly which defines the COM CoClass? Something like this:

using System.Reflection;

 //... somewhere

 const string sOutlookInteropAssemblyName =
  "Microsoft.Office.Interop.Outlook";
 const string sContactItemTypeName =
  "_ContactItem";

 //... somewhere (error handling ommitted) 
 
 PropertyInfo FindProperty(string pPropertyName) {

  Assemby tOulookInterop =
   Assembly.ReflectionOnlyLoad(sOutlookInteropAssembly);
  Type tContactItemType =
   tOutlookInterop.GetType(sContactItemTypeName);

  // this is what you want I assume...
  PropertyInfo [] tProperties =
   tContactItemType.GetProperties();
 
  return tProperties.Find(Property => Property.Name == pPropertyName);
 }


Huch, there is a lot of stuff which can go wrong, I just typed in the code without checking it, but I hope you get the point.

modified on Saturday, August 28, 2010 4:28 AM

QuestionC# Squrid My Program Up Pin
C.CoderCreator26-Aug-10 22:43
C.CoderCreator26-Aug-10 22:43 
AnswerRe: C# Squrid My Program Up PinPopular
Pete O'Hanlon26-Aug-10 23:17
mvePete O'Hanlon26-Aug-10 23:17 
AnswerRe: C# Squrid My Program Up Pin
OriginalGriff26-Aug-10 23:54
mveOriginalGriff26-Aug-10 23:54 
AnswerRe: C# Squrid My Program Up Pin
J a a n s27-Aug-10 0:20
professionalJ a a n s27-Aug-10 0:20 
AnswerRe: C# Squrid My Program Up Pin
Luc Pattyn27-Aug-10 2:06
sitebuilderLuc Pattyn27-Aug-10 2:06 
AnswerRe: C# Squrid My Program Up Pin
T M Gray27-Aug-10 4:32
T M Gray27-Aug-10 4:32 
GeneralRe: C# Squrid My Program Up Pin
Chris Trelawny-Ross27-Aug-10 5:53
Chris Trelawny-Ross27-Aug-10 5:53 
AnswerRe: C# Squrid My Program Up Pin
The Man from U.N.C.L.E.27-Aug-10 6:17
The Man from U.N.C.L.E.27-Aug-10 6:17 
AnswerRe: C# Squrid My Program Up Pin
Paul Michalik27-Aug-10 23:01
Paul Michalik27-Aug-10 23:01 
QuestionHow to create Microsoft Excel 2007 add-in in C#2010 Pin
soe htet26-Aug-10 22:32
soe htet26-Aug-10 22:32 
AnswerRe: How to create Microsoft Excel 2007 add-in in C#2010 Pin
Łukasz Nowakowski27-Aug-10 0:32
Łukasz Nowakowski27-Aug-10 0:32 
Questionvideo chat Pin
sardar.nale26-Aug-10 22:09
sardar.nale26-Aug-10 22:09 
AnswerRe: video chat Pin
Pete O'Hanlon26-Aug-10 22:22
mvePete O'Hanlon26-Aug-10 22:22 
AnswerRe: video chat Pin
J4amieC26-Aug-10 22:27
J4amieC26-Aug-10 22:27 
AnswerRe: video chat Pin
Pete O'Hanlon26-Aug-10 22:31
mvePete O'Hanlon26-Aug-10 22:31 
AnswerRe: video chat Pin
OriginalGriff26-Aug-10 22:32
mveOriginalGriff26-Aug-10 22:32 
AnswerRe: video chat Pin
Luc Pattyn27-Aug-10 2:10
sitebuilderLuc Pattyn27-Aug-10 2:10 

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.