Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
F

f3rland

@f3rland
About
Posts
26
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to GetMethod that use Dynamic Parameter (TypeParam)?
    F f3rland

    Begin PART 1 : I have a sub

    Private Sub PrintProperties(Of T)(ByVal pItem As T)
    [...]
    End Sub

    that I need to access it through MethodInfo :

    Private Sub PrintPropertiesMaster(Of T)()
    [...]
    Dim method As MethodInfo = GetType(Form1).GetMethod("PrintProperties", _
    (System.Reflection.BindingFlags.Instance _
    Or (System.Reflection.BindingFlags.Public Or System.Reflection.BindingFlags.NonPublic)), _
    Nothing, New Type() {GetType(T)}, Nothing)
    [...]
    End Sub

    but method is set to nothing after the previous line. :confused: I'm sure I miss something in the Type.GetMethod parameters. Any idea? End PART 1 Begin PART 2 : Another way to achieve my goal could be to know how to specify a TypeParam dynamically. Let me explain this with sample : This is my not conforming code:

    For Each oEnt As Entity In DefaultManager.GetEntities(Of SomeNameSpace.ObjOne)()
    PrintProperties(Of SomeNameSpace.ObjOneDataRow)(CType(oEnt, SomeNameSpace.ObjOneDataRow))
    Next
    For Each oEnt As Entity In DefaultManager.GetEntities(Of SomeNameSpace.ObjTwo)()
    PrintProperties(Of SomeNameSpace.ObjTwoDataRow)(CType(oEnt, SomeNameSpace.ObjTwoDataRow))
    Next
    'And so on
    [...]

    I need to access it using a System.Type instead of TypeParam (Of Something) (Consider that ObjOne Inherits from ObjOneDataRow and ObjTwo Inherits from ObjTwoDataRow. In other words, ObjOneDataRow is the base class of ObjOne) So one parameter should be enough to know all the needed System.Type to finish with something like this :

    Private Sub PrintValues(Of T)()
    For Each oEnt As Entity In DefaultManager.GetEntities(Of T)()
    PrintProperties(Of GetType(T).BaseType)(CType(oEnt, GetType(T).BaseType))
    Next
    End Sub

    but this does not compile :( End PART 2 Thanks for any help!!!

    Visual Basic help tutorial question

  • Perl -> .net?
    F f3rland

    take a look at this : Calling .NET Assemblies with Win32::OLE[^] :)

    The Lounge csharp perl question

  • dockable browser
    F f3rland

    anyone know a browser with docking capability or a pluggin to do that in Firefox™? :confused: thanks in advance :)

    The Lounge question

  • Desktop sharing for free
    F f3rland

    Thanks. I tried this a couple hours ago. Although I needed to create an account on that site. Maybe because of Firefox 3 with disabled cookies... Seems good ;)

    The Lounge com question

  • Desktop sharing for free
    F f3rland

    Is it safe to put my Google credential on that site?

    The Lounge com question

  • What does your Admin UI look like?
    F f3rland

    Last week I stumble upon this : http://designinginterfaces.com/About_Patterns[^] maybe that could help you ;)

    The Lounge design question

  • What does your Admin UI look like?
    F f3rland

    Did you take a look at DevExpress and/or Infragistic controls? eh... is it in .NET ? :doh:

    The Lounge design question

  • Which to Believe: Profile or Actual Works? [modified]
    F f3rland

    So from now I can consider myself as an active member :cool: yep yep yep yepeee!!! Me v0.1 = Passive member Me v0.2 = Active member!!!

    The Lounge csharp com business tools help

  • Which to Believe: Profile or Actual Works? [modified]
    F f3rland

    Who we are?[^] Q: Can I assume myself as an "Active member" if I read post and articles many times a week but don't post any? :confused:

    The Lounge csharp com business tools help

  • Very interesting video on Federal banks
    F f3rland

    I do not post very often but that video cough my attention so I decided to share it with CPians community. What does impact our interest rate and taxes? http://video.google.com/videoplay?docid=5232639329002339531&usg=al29h22wojyfhqo8pddlzwnybnll4snpnw/[^] 58min Thanks Google!! ;)

    The Lounge com question

  • Dual Repository SVN
    F f3rland

    did you try the "Switch" command? :)

    The Lounge collaboration question

  • Atwood's Blog
    F f3rland

    same thing black on white

    The Lounge com question

  • Finding which application has a memory leak
    F f3rland

    I often use ProcessExplorer from SysInternals (now Micro$oft) Free and no install required. Show many usefull informations on processes : Image here[^] I use it about 40 times a day :-D [quote] The unique capabilities of Process Explorer make it useful for tracking down DLL-version problems or handle leaks, and provide insight into the way Windows and applications work. [/quote] Hope this will help ;)

    The Lounge help performance question

  • file uploader
    F f3rland

    Look like "Easy Uploader 1.5" from download.com but it support multiple file upload at once to different host.

    modified on Wednesday, March 26, 2008 9:57 AM

    The Lounge question

  • file uploader
    F f3rland

    I used a free file uploader software times ago and dont remember it's name... :sigh: It was capable to send to megaupload, fileshack, and many other like that (free file hoster). Some of the supported sites returned a "delete link" (that was sometimes usefull) accessible via the software interface. The result link was also available via the interface ;P As I remember, it was a "no install" app. Any software idea? Thanks for any reminders :laugh:

    The Lounge question

  • Question1: MP3 Software...
    F f3rland

    If all MP3 tagged Then
    a software that only check the tags will probably be more efficient in your case.
    Else
    Use a software to tag them if possible ;) (I give a try to Tag&Rename and it's great. It can tag from folders name and/or file name)
    1st pass for duplicate file name
    2nd pass for duplicate tag
    3rd pass for duplicate file checksum
    End If

    The Lounge question

  • Question1: MP3 Software...
    F f3rland

    Take a look at google for a "duplicate file finder" :rolleyes:

    The Lounge question

  • Send fax through speaker?
    F f3rland

    Wow! Perfect for my needs :-D Many thanks!

    The Lounge help question

  • Send fax through speaker?
    F f3rland

    I expose the problem : I dont have fax/modem card in my PC and I want to send a Fax. :doh: Do you know good freeware to call the fax number with my landphone then send fax through my speaker? Or any other way to send fax freely without a fax/modem card. :confused: The fax is already in electronic format.. Txt file or PDF or DOC Thanks for any help! :-D

    The Lounge help question

  • Documentation via Code Comments
    F f3rland

    We use NDocGui to generate chm help file. That's the one we got to work. :-D

    The Lounge question com tools xml help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups