Telerik blogs

Latest

  • Productivity

    Visual Studio Tooltips unplugged: Drag and Drop code artifacts to Toolbox General Tab.

    I bet you never thought about this feature! Me either… It’s good that there is a marvelous blog about all goodies in VS maintained by a nice lady. I will be monitoring and making comments on the topics there that have excited me most. So what is on today’s menu? As you’ve probably figured it out already, I will comment on a fine (but unknown to me) feature of dragging and pasting code artifacts straight to the VS toolbox. At first I was a little bit skeptic, but it really worked out, let me show you how: 1. Mark a code segment...
    May 27, 2021 1 min read
  • Productivity

    Visual Studio Tip: Creating Your Own Code Snippets

    I recently blogged about using code snippets as a shortcut to writing more code in less time. In this post, I'm going to walk you through the steps to create custom snippets that you can install into Visual Studio for use in your own projects To get started, let's take a look at the anatomy of a snippet. A snippet is nothing more than an XML file, with a .snippet extension, containing configuration settings. If you open up the file foreach.snippet (located in "<Visual Studio installation directory>\VC#\Snippets\1033\Visual C#") you'll find the following XML, which defines the foreach snippet: As you can see, the XML used to...
    May 27, 2021 8 min read
  • Productivity

    Image caching in PDF

    Over the past few days I worked on an image caching mechanism in the PDF Rendering Extension and I am happy to announce that the achieved output size reduction was more than significant. The Problem When a report contains the same binary image many times, the PDF Rendering Extension has no way of knowing that it is actually one and the same and renders it many times thus wasting disc space. For an illustration of this case imagine that you have your company's logo in the page header and your report is 200 pages long. The Solution: Enter Cyclic Redundancy Check I've implemented a central...
    May 27, 2021 3 min read
  • Productivity

    Visual Studio Tip: Using Code Snippets

    A few weeks ago I blogged about creating your own reusable templates for Visual Studio. One of my favorite things about Visual Studio is that it offers a lot of great ways for developers to improve the development experience (and productivity) by adding many extensibility points in the IDE. Now developers have the option of adding on to existing features of Visual Studio with templates and macros, or integrating completely unique features directly into the IDE with add-ins. One of these extensibility features, snippets, adds a ton of value to developer productivity and is incredibly easy to use. Snippets are small, parameterized...
    May 27, 2021 3 min read
  • Productivity

    Show me your IsNumeric() and I'll show you mine

    I was innocently writing a piece of code today and the need arose to check if an input type is a number. Naturally I started looking for such a method inside the .NET classes. After all for a framework which has more than 380,000 methods it will only be logical to have at least one which will do something as basic as this. Guess what? .NET does not ship with such a public method. Whaaaa? But do stay with me, please! It gets better. Armed with Reflector I decided that even if there is no such public method there must be a private one at...
    May 27, 2021 1 min read