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
A

Abel Braaksma

@Abel Braaksma
About
Posts
2
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Impossible to inherit from HttpWebRequest?
    A Abel Braaksma

    The reason it cannot be inherited is because HttpWebRequest does not have a public default constructor that takes zero arguments. If you use code like this (note: not safe, you must provide proper arguments for base(..,..)) it will compile and work:

    public class SafeHttpWebRequest : HttpWebRequest
    {
    public SafeHttpWebRequest() : base(null, new StreamingContext()) { /* do something */ }
    }

    .NET (Core and Framework) question

  • C# and Glyph
    A Abel Braaksma

    (6 years after you asked) here's a solution. At the time GetGlyphOutline was not directly accessible through .NET. However, since .NET 3.0 and 3.5 the function has been added. You can now use it directly from you C# or VB code, but note that the method is not CLS compliant (as Microsoft states): http://msdn.microsoft.com/en-us/library/system.windows.media.glyphtypeface.getglyphoutline.aspx[^] -- Abel --

    C# csharp c++ help question
  • Login

  • Don't have an account? Register

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