473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Display items in a code snippet

I created a code snippet which is for displaying file name,Line number
and function name in C#.NET project.

// <File>
sf.GetFileName()
// </File>
// <Line>
sf.GetFileLineNumber().ToString()
// </Line>
// <Function>
sf.GetMethod().ToString()
// <Function>

But I could not get the file name,Line number and function name.
Only get the functions for this..
How to display these items in a code snippet?
Please help me.

Mar 9 '07 #1
3 1831
I don't know what you want via the code snippet
clear it to me.

"Hardy" <mn***********@gmail.com>
??????:11*********************@j27g2000cwj.googleg roups.com...
>I created a code snippet which is for displaying file name,Line number
and function name in C#.NET project.

// <File>
sf.GetFileName()
// </File>
// <Line>
sf.GetFileLineNumber().ToString()
// </Line>
// <Function>
sf.GetMethod().ToString()
// <Function>

But I could not get the file name,Line number and function name.
Only get the functions for this..
How to display these items in a code snippet?
Please help me.

Mar 9 '07 #2
On Mar 9, 11:37 am, "Eugene" <A...@B.Cwrote:
I don't know what you want via the code snippet
clear it to me.

"Hardy" <mnair.leks...@gmail.com>
??????:1173420815.043930.29...@j27g2000cwj.googleg roups.com...
I created a code snippet which is for displaying file name,Line number
and function name in C#.NET project.
// <File>
sf.GetFileName()
// </File>
// <Line>
sf.GetFileLineNumber().ToString()
// </Line>
// <Function>
sf.GetMethod().ToString()
// <Function>
But I could not get the file name,Line number and function name.
Only get the functions for this..
How to display these items in a code snippet?
Please help me.- Hide quoted text -

- Show quoted text -
I want to insert a code snippet upper the functions which contain
funcion name,File name and line number.

Mar 9 '07 #3
On Mar 9, 12:02 pm, "Hardy" <mnair.leks...@gmail.comwrote:
On Mar 9, 11:37 am, "Eugene" <A...@B.Cwrote:


I don't know what you want via the code snippet
clear it to me.
"Hardy" <mnair.leks...@gmail.com>
??????:1173420815.043930.29...@j27g2000cwj.googleg roups.com...
>I created a code snippet which is for displaying file name,Line number
and function name in C#.NET project.
// <File>
sf.GetFileName()
// </File>
// <Line>
sf.GetFileLineNumber().ToString()
// </Line>
// <Function>
sf.GetMethod().ToString()
// <Function>
But I could not get the file name,Line number and function name.
Only get the functions for this..
How to display these items in a code snippet?
Please help me.- Hide quoted text -
- Show quoted text -

I want to insert a code snippet upper the functions which contain
funcion name,File name and line number.- Hide quoted text -

- Show quoted text -
I want to insert a comment using code snippet upper the functions
which contain
funcion name,File name and line number.

Mar 9 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Benedict Teoh | last post by:
I created a dropdownlist containing day, month and year field and expose a property to assign a date. When I call from a aspx page and assign the value, the new date is not displayed until a submit...
4
by: Ron | last post by:
I've got a listbox that holds a list of groups. Users can select a group, hit the remove button and the group should be removed from the listbox. The only problem is that no matter which group you...
2
by: Murt | last post by:
if i perform a sort on an array, how do i get the sorted array to be displayed in a listbox? thanks murt
9
by: Paul H | last post by:
I have developed several databases in Access. I know VBA. I am making the jump to VB and am currently using Visual basic 2005 Express. Can anyone give me a snippet that will show me how to list...
5
by: CES | last post by:
All, I was hoping that someone might be able to help me with a few questions on Aligning Block Elements properly... Basically I have a row that has a fixed width of 900px. Within the row their is...
0
by: Zaphod | last post by:
greetings! My question is this; I have a rss news feed up and running on a website, but I would like to sift through the 30-40 items provided and display only the ones with a certian word in the...
2
by: HarisHohkl | last post by:
Hi, I've this function in a class to update the total value.but when i try to remove the these row highlight in Bold it crash, what should i do???? void display_total_value() { double...
4
by: Duncan Smith | last post by:
So far, the quikest way I have found to select all items in a list box is to turn off updates, set a wait cusror and then call SetSelected on each item (see below), but it's too slow when the...
5
by: Academia | last post by:
(If you've seen this in the drawing NG, sorry. I inadvertently sent it there.) I have a listbox populated with Objects. The Class has a String field that ToString returns. I assume that...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.