Anda di halaman 1dari 3

Metadata as Source

http://msdn.microsoft.com/en-us/library/ms236403

Home

Library

Learn

Downloads

Support

Sign in | United States - English |

Search MSDN with Bing

Metadata as Source

Visual Studio 2010 Other Versions MSDN Library 0 out of 1 rated this helpful - Rate this topic Development Tools and Languages Visual Studio 2010 Metadata as source enables you to view metadata that appears as C# Visual Studio source code in a read-only buffer. This enables a view of the Visual Studio Languages declarations of the types and members (without implementations). You Visual Basic and Visual C# can view metadata as source by running the Go To Definition Visual C# command for types or members whose source code is not available Using the Visual C# Development Environment from your project or solution. How to: Add Application Configuration Files to C# Projects Metadata as Source Note Refactoring (C#) Community Content Add code samples and tips to enhance this topic. More... When you try to run the Go To Definition command for types or members that are marked as internal, the integrated development environment (IDE) does not display their metadata as source, regardless of whether the referencing assembly is a friend or not. You can view metadata as source in either the Code Editor or the Code Definition window.

Advertisement

Viewing Metadata as Source in the Code Editor


When you run the Go To Definition command for an item whose source code is unavailable, a tabbed document that contains a view of that item's metadata, displayed as source, appears in the Code Editor. The name of the type, followed by [from metadata], appears on the document's tab. For example, if you run the Go To Definition command for Console, metadata for Console appears in the Code Editor as C# source code that resembles its declaration, but without an implementation.

1 of 3

5/25/2012 11:35 AM

Metadata as Source

http://msdn.microsoft.com/en-us/library/ms236403

Viewing Metadata as Source in the Code Definition Window


When the Code Definition window is active or visible, the IDE automatically executes the Go To Definition command for items under the cursor in the Code Editor and for items that are selected in Class View or the Object Browser. If the source code is not available for that item, the IDE displays the item's metadata as source in the Code Definition window. For example, if you put your cursor inside the word Console in the Code Editor, metadata for Console appears as source in the Code Definition window. The source resembles the Console declaration, but without an implementation. If you want to see the declaration of an item that appears in the Code Definition window, right-click the item and click Go To Definition.

See Also
Reference Code Definition Window Find Symbol Results Window

Did you find this helpful?

Yes

No

2 of 3

5/25/2012 11:35 AM

Metadata as Source

http://msdn.microsoft.com/en-us/library/ms236403

Community Content

Add

FAQ

Advertisement

2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback

3 of 3

5/25/2012 11:35 AM