top-image

Tag archives for Get

CSharp/C# : Get the source folder path of CSharp class
Hi, Here, an example to get the source folder path of CSharp class via a static method and the package System.Runtime.CompilerServices. In fact, we solicit the compiler in order to get some informations about caller (caller line number, caller method, caller file path): https://msdn.microsoft.com/fr-fr/library/system.runtime.compilerservices.callermembernameattribute(v=vs.110).aspx.   ...in the caller method, for example a simple Program.cs, some parameters Callerxxxx are set by compiler: That's all!!!! Huseyin ...more»
Java/Spring: Get and display the version from MANIFEST.MF
In this small post, I will expose your simple useful manners to get the version from MANIFEST.MF and display it in an web application. 1st case: loading of the META-INF file contained in a custom library Create (or check the presence of) the MANIFEST.MF file in the META-INF folder of your custom library like MyLib\src\META-INF\MANIFEST.MF. The content of this file could be: Create ...more»
bottom-img
Copyright ® 2012 Huseyin Ozveren. No reproduction, even partial, can be used from this site and all its contents including text, documents, images, etc.. without the express permission of the author.