﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » .NET Forums » General .NET Discussion  » Wheres the best place to put common methods</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Thu, 07 May 2026 00:31:56 GMT</lastBuildDate><ttl>20</ttl><item><title>Wheres the best place to put common methods</title><link>http://forum.strataframe.net/FindPost25419.aspx</link><description>I am uisng c# as main language&lt;/P&gt;&lt;P&gt;I am starting to build up a lot of common methods that will be used across Buisness Objects. e.g. Validating Lookups, Picking out descriptions etc. that will typically need to go out to Database Tables (rather than access internal Buisness Objects)&lt;/P&gt;&lt;P&gt;I have to decide where to put this code....do I just put then all into a common .CS file, Do I create a .DLL separate project... wondering what is the best pracrise here.&lt;/P&gt;&lt;P&gt;Tia.</description><pubDate>Fri, 18 Dec 2009 11:07:40 GMT</pubDate><dc:creator>Ger Cannoll</dc:creator></item><item><title>RE: Wheres the best place to put common methods</title><link>http://forum.strataframe.net/FindPost25430.aspx</link><description>Thanks&amp;nbsp;&amp;nbsp;for your replies lads. I think initially I might put Misc stuff into a 'Common' CS file and maybe look at it again down the road.</description><pubDate>Fri, 18 Dec 2009 11:07:40 GMT</pubDate><dc:creator>Ger Cannoll</dc:creator></item><item><title>RE: Wheres the best place to put common methods</title><link>http://forum.strataframe.net/FindPost25422.aspx</link><description>I'm using the suggested SF architecture of having a Base assembly were I put this kind of stuff.  Likely if I had a single assembly project, I'd put this kind of common code in its own folder, with its own namespace.  I definitely tend toward using the base assembly approach though, as it makes it easier to share with other projects/solutions.</description><pubDate>Thu, 17 Dec 2009 11:00:05 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Wheres the best place to put common methods</title><link>http://forum.strataframe.net/FindPost25421.aspx</link><description>Hi Gerard,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I'd say that if the methods are all going to be used in a single project, a .cs file in the project would be adequate. That's especially true if you're continually adding more code to the class. I'd only create a separate project and dll if i just wanted to include the dll in all of my projects without the source code. &lt;/P&gt;&lt;P&gt;Les</description><pubDate>Thu, 17 Dec 2009 09:06:01 GMT</pubDate><dc:creator>Les Pinter</dc:creator></item></channel></rss>