KirillOsenkov

Stories submitted by KirillOsenkov

Indexed Properties in C# 4.0(blogs.msdn.com)

submitted by KirillOsenkovKirillOsenkov(570) 2 years, 7 months ago

In C# 4.0 you can call parameterized properties that are declared in other languages (VB, COM, C++, etc) using the indexer syntax, for instance instead of excel.get_Range("a") you can now write excel.Range["a"]. You still can’t declare your own indexed properties from C#. The feature is immediately available in Visual Studio 2010 Beta 2 for your indexing pleasure. read more...

add a comment |category: |Views: 23

tags: another

C# Structured Editor Prototype(blogs.msdn.com)

submitted by KirillOsenkovKirillOsenkov(570) 2 years, 8 months ago

As part of my research back in school I was building an experimental structured editor for C#. Now I’ve decided to publish the sources and binaries on CodePlex: http://structurededitor.codeplex.com To give a better idea of how the editor works, I’ve recorded six short videos showing the different features below. read more...

1 comment |category: |Views: 462

tags: another

How to debug crashes and hangs(blogs.msdn.com)

submitted by KirillOsenkovKirillOsenkov(570) 3 years, 5 months ago

At my job on the C# IDE QA team I've learned some useful things about debugging in Visual Studio, which I'd like to summarize in this post: Turning off "Enable just my code" Attaching the debugger using Tools | Attach To Process Selecting Managed, Native for mixed-mode debugging or Enable unmanaged code debugging Attaching to multiple processes Selecting processes and threads Breaking on first-chance exceptions using the Debug | Exceptions dialog Picking the right thread Loading symbols Viewing the call stack Saving the minidump file read more...

1 comment |category: |Views: 45

tags: another

Links about Visual Studio 2010 and C# 4.0(blogs.msdn.com)

submitted by KirillOsenkovKirillOsenkov(570) 3 years, 6 months ago

Accumulated links to videos and articles about new features in Visual Studio 2010, C# 4.0, .NET Framework 4.0, as well as overview of C# language and IDE new features. read more...

add a comment |category: |Views: 5

tags: another

Even more assorted Visual Studio tips(blogs.msdn.com)

submitted by KirillOsenkovKirillOsenkov(570) 3 years, 7 months ago

Kirill Osenkov blogs about his favorite often used Visual Studio features, including advanced debugging with sos.dll and XML code snippets. read more...

add a comment |category: |Views: 24

tags: another

How to map a Visual Studio macro to a keyboard shortcut?(blogs.msdn.com)

submitted by KirillOsenkovKirillOsenkov(570) 4 years ago

You'll most probably know by now, but if not... read more...

1 comment |category: |Views: 9

tags: another

Jon Skeet's new book: C# in Depth(csharpindepth.com)

submitted by KirillOsenkovKirillOsenkov(570) 4 years, 1 month ago

Jon Skeet has written an excellent book on C#. read more...

add a comment |category: |Views: 1

tags: another

Some useful Visual Studio macros(blogs.msdn.com)

submitted by KirillOsenkovKirillOsenkov(570) 4 years, 1 month ago

A macro for quickly inserting curly braces in C#, a macro to convert a field to an auto-implemented property and some other goodies. read more...

3 comments |category: |Views: 242

tags: another

File.ReadAllText, WriteAllText, ReadAllLines, WriteAllLines, etc.(kirillosenkov.blogspot.com)

submitted by KirillOsenkovKirillOsenkov(570) 4 years, 2 months ago

I found that a lot of people still use StreamReader/StreamWriter for simple file access. You can replace using... StreamReader... ReadToEnd... with a simple call to File.ReadAllText read more...

add a comment |category: |Views: 201

tags: another

Parsing and compiling arithmetic expressions(community.bartdesmet.net)

submitted by KirillOsenkovKirillOsenkov(570) 4 years, 5 months ago

An excellent series by Bart de Smet, goes from a string like "2+3" to a compiler evaluation method. read more...

add a comment |category: |Views: 21

tags: another

Extension methods: one of my favorite C# 3.0 features(kirillosenkov.blogspot.com)

submitted by KirillOsenkovKirillOsenkov(570) 4 years, 6 months ago

A small set of nice samples of extension methods for strings, collections and XML. Also a discussion of pros and cons: Pros: 1. Enhancing existing API usability 2. Adding default implementation to interfaces 3. Composability and fluent interface Cons: 1. Discoverability 2. Readability 3. Versioning read more...

add a comment |category: |Views: 1

tags: another

A strongly-typed combobox control for enum values(kirillosenkov.blogspot.com)

submitted by KirillOsenkovKirillOsenkov(570) 4 years, 8 months ago

... or why do we need the "where T: enum" generic constraint. Kirill Osenkov posts a working sample of a combobox for choosing a value from enum's available values. It is automatically filled with values of the enumeration and has a strongly typed Value property. read more...

add a comment |category: |Views: 150

tags: another

Font in VS: adjust not only the editor font, but the rest of the IDE(diditwith.net)

submitted by KirillOsenkovKirillOsenkov(570) 4 years, 8 months ago

A great advice from diditwith.net: beside adjusting the editor font in Visual Studio, you can also adjust fonts in the rest of the IDE, including IntelliSense and tool windows. This is especially useful for presentations. read more...

add a comment |category: |Views: 13

tags: another

C# videos(blogs.msdn.com)

submitted by KirillOsenkovKirillOsenkov(570) 4 years, 8 months ago

C# videos collection by Charlie Calvert read more...

add a comment |category: |Views: 36

tags: another

C# 3.0 Collection Initializers, Duck Typing and ISupportsAdd(kirillosenkov.blogspot.com)

submitted by KirillOsenkovKirillOsenkov(570) 4 years, 8 months ago

Some thoughts and brainstorming about how to make collection initializers more universally usable, and some thoughts about duck typing in C#. read more...

add a comment |category: |Views: 15

tags: another

Static analysis and source code querying(kirillosenkov.blogspot.com)

submitted by KirillOsenkovKirillOsenkov(570) 4 years, 8 months ago

A brief overview article about .NET and Java static analysis tools - applications that analyse source code to find bugs or gather code metrics. read more...

add a comment |category: |Views: 4

tags: another