Inherit DO_NOT_SHOW DO_NOT_SHOW DO_NOT_SHOW DO_NOT_SHOW DO_NOT_SHOW DO_NOT_SHOW DO_NOT_SHOW DO_NOT_SHOW DO_NOT_SHOW DO_NOT_SHOW DO_NOT_SHOW HINT DoHide DoHide DoHide DoHide DoHide DoHide DoHide DoHide DoHide DoHide DoHide DoHide DoHide DoHide DoHide DoHide DoHide DoHide DoHide DoHide DoHide DoHide DoHide HINT <?xml version="1.0" encoding="utf-16"?><Profile name="Project"><CSRemoveCodeRedundancies>True</CSRemoveCodeRedundancies><CSMakeFieldReadonly>True</CSMakeFieldReadonly><CSUseVar><BehavourStyle>CAN_CHANGE_BOTH</BehavourStyle><LocalVariableStyle>IMPLICIT_WHEN_INITIALIZER_HAS_TYPE</LocalVariableStyle><ForeachVariableStyle>ALWAYS_EXPLICIT</ForeachVariableStyle></CSUseVar><CSShortenReferences>True</CSShortenReferences><CSReformatCode>True</CSReformatCode><CSArrangeThisQualifier>True</CSArrangeThisQualifier><CSOptimizeUsings><OptimizeUsings>True</OptimizeUsings><EmbraceInRegion>False</EmbraceInRegion><RegionName>Namespaces</RegionName></CSOptimizeUsings><CSUseAutoProperty>True</CSUseAutoProperty><CSArrangeQualifiers>True</CSArrangeQualifiers><CSEnforceVarKeywordUsageSettings>True</CSEnforceVarKeywordUsageSettings><CSCodeStyleAttributes ArrangeTypeAccessModifier="True" ArrangeTypeMemberAccessModifier="True" SortModifiers="True" RemoveRedundantParentheses="False" AddMissingParentheses="True" ArrangeBraces="False" ArrangeAttributes="True" ArrangeArgumentsStyle="True" ArrangeCodeBodyStyle="True" ArrangeVarStyle="True" /><CSMakeAutoPropertyGetOnly>True</CSMakeAutoPropertyGetOnly><FormatAttributeQuoteDescriptor>True</FormatAttributeQuoteDescriptor><CSFixBuiltinTypeReferences>True</CSFixBuiltinTypeReferences><CSUpdateFileHeader>True</CSUpdateFileHeader><JsReformatCode>True</JsReformatCode><JsFormatDocComments>True</JsFormatDocComments><CSharpFormatDocComments>True</CSharpFormatDocComments><CSReorderTypeMembers>True</CSReorderTypeMembers><JsInsertSemicolon>True</JsInsertSemicolon><HtmlReformatCode>True</HtmlReformatCode></Profile> <?xml version="1.0" encoding="utf-16"?><Profile name="Remove Redundant Qualifiers"><CSArrangeThisQualifier>True</CSArrangeThisQualifier><CSRemoveCodeRedundancies>True</CSRemoveCodeRedundancies><CSUseAutoProperty>False</CSUseAutoProperty><CSMakeFieldReadonly>False</CSMakeFieldReadonly><CSUseVar><BehavourStyle>DISABLED</BehavourStyle><LocalVariableStyle>IMPLICIT_WHEN_INITIALIZER_HAS_TYPE</LocalVariableStyle><ForeachVariableStyle>ALWAYS_EXPLICIT</ForeachVariableStyle></CSUseVar><CSUpdateFileHeader>False</CSUpdateFileHeader><VBOptimizeImports>False</VBOptimizeImports><VBShortenReferences>False</VBShortenReferences><CSOptimizeUsings><OptimizeUsings>False</OptimizeUsings><EmbraceInRegion>False</EmbraceInRegion><RegionName /></CSOptimizeUsings><CSShortenReferences>True</CSShortenReferences><VBReformatCode>False</VBReformatCode><CSReformatCode>False</CSReformatCode><CSReorderTypeMembers>False</CSReorderTypeMembers></Profile> Full Cleanup Project OPTIMAL_FILL LF True False True Required Required Required Required 15 OPTIMAL_FILL False False False False False False False False NEXT_LINE 1 1 1 1 1 1 NEXT_LINE SEPARATE ALWAYS_ADD ALWAYS_ADD ALWAYS_ADD ALWAYS_ADD ALWAYS_ADD ALWAYS_ADD True Tab NEXT_LINE 1 1 False True EXPANDED NEVER NEVER False False NEVER False False True False True False True False False True True CHOP_IF_LONG CHOP_IF_LONG True True True True CHOP_IF_LONG CHOP_IF_LONG CHOP_IF_LONG 80 CHOP_IF_LONG OPTIMAL_FILL OPTIMAL_FILL OPTIMAL_FILL Tab True 1 1 True 1 False False True True True CHOP_IF_LONG OPTIMAL_FILL OPTIMAL_FILL OPTIMAL_FILL OPTIMAL_FILL ZeroIndent ZeroIndent 80 OPTIMAL_FILL <?xml version="1.0" encoding="utf-16"?> <Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns"> <TypePattern DisplayName="StyleCop Layout" RemoveRegions="All"> <TypePattern.Match> <Or> <Kind Is="Class" /> <Kind Is="Struct" /> <Kind Is="Interface" /> </Or> </TypePattern.Match> <Entry DisplayName="Constants"> <Entry.Match> <Kind Is="Constant" /> </Entry.Match> <Entry.SortBy> <Access Order="Public Internal ProtectedInternal Protected Private" /> <Name /> </Entry.SortBy> </Entry> <Entry DisplayName="Static fields"> <Entry.Match> <And> <Kind Is="Field" /> <Static /> </And> </Entry.Match> <Entry.SortBy> <Kind Order="Constant Field" /> <Access Order="Public Internal ProtectedInternal Protected Private" /> <Readonly /> <Name /> </Entry.SortBy> </Entry> <Entry DisplayName="Fields"> <Entry.Match> <Kind Is="Field" /> </Entry.Match> <Entry.SortBy> <Access Order="Public Internal ProtectedInternal Protected Private" /> <Readonly /> <Name /> </Entry.SortBy> </Entry> <Entry DisplayName="Constructors and destructors" Priority="200"> <Entry.Match> <Or> <Kind Is="Constructor" /> <Kind Is="Destructor" /> </Or> </Entry.Match> <Entry.SortBy> <Static /> <Kind Order="Constructor Destructor" /> <Access Order="Public Internal ProtectedInternal Protected Private" /> </Entry.SortBy> </Entry> <Entry DisplayName="Delegates"> <Entry.Match> <Kind Is="Delegate" /> </Entry.Match> <Entry.SortBy> <Access Order="Public Internal ProtectedInternal Protected Private" /> <Static /> <Name /> </Entry.SortBy> </Entry> <Entry DisplayName="Public events"> <Entry.Match> <And> <Kind Is="Event" /> <Access Is="Public" /> </And> </Entry.Match> <Entry.SortBy> <Access Order="Public" /> <Static /> <Name /> </Entry.SortBy> </Entry> <Entry DisplayName="Interface events"> <Entry.Match> <And> <Kind Is="Event" /> <ImplementsInterface /> </And> </Entry.Match> <Entry.SortBy> <ImplementsInterface Immediate="True" /> <Name /> </Entry.SortBy> </Entry> <Entry DisplayName="Other events"> <Entry.Match> <Kind Is="Event" /> </Entry.Match> <Entry.SortBy> <Access Order="Public Internal ProtectedInternal Protected Private" /> <Static /> <Name /> </Entry.SortBy> </Entry> <Entry DisplayName="Enums"> <Entry.Match> <Kind Is="Enum" /> </Entry.Match> <Entry.SortBy> <Access Order="Public Internal ProtectedInternal Protected Private" /> <Name /> </Entry.SortBy> </Entry> <Entry DisplayName="Interfaces"> <Entry.Match> <Kind Is="Interface" /> </Entry.Match> <Entry.SortBy> <Access Order="Public Internal ProtectedInternal Protected Private" /> <Name /> </Entry.SortBy> </Entry> <Entry DisplayName="Public properties"> <Entry.Match> <And> <Kind Is="Property" /> <Access Is="Public" /> </And> </Entry.Match> <Entry.SortBy> <Access Order="Public" /> <Static /> <Name /> </Entry.SortBy> </Entry> <Entry DisplayName="Interface properties"> <Entry.Match> <And> <Kind Is="Property" /> <ImplementsInterface /> </And> </Entry.Match> <Entry.SortBy> <ImplementsInterface Immediate="True" /> <Name /> </Entry.SortBy> </Entry> <Entry DisplayName="Other properties"> <Entry.Match> <Kind Is="Property" /> </Entry.Match> <Entry.SortBy> <Access Order="Public Internal ProtectedInternal Protected Private" /> <Static /> <Name /> </Entry.SortBy> </Entry> <Entry DisplayName="Public indexers" Priority="1000"> <Entry.Match> <And> <Kind Is="Indexer" /> <Access Is="Public" /> </And> </Entry.Match> <Entry.SortBy> <Access Order="Public" /> <Static /> <Name /> </Entry.SortBy> </Entry> <Entry DisplayName="Interface indexers" Priority="1000"> <Entry.Match> <And> <Kind Is="Indexer" /> <ImplementsInterface /> </And> </Entry.Match> <Entry.SortBy> <ImplementsInterface Immediate="True" /> <Name /> </Entry.SortBy> </Entry> <Entry DisplayName="Other indexers" Priority="1000"> <Entry.Match> <Kind Is="Indexer" /> </Entry.Match> <Entry.SortBy> <Access Order="Public Internal ProtectedInternal Protected Private" /> <Static /> <Name /> </Entry.SortBy> </Entry> <Entry DisplayName="Public methods"> <Entry.Match> <And> <Kind Is="Method" /> <Access Is="Public" /> </And> </Entry.Match> <Entry.SortBy> <Access Order="Public" /> <Static /> <Name /> </Entry.SortBy> </Entry> <Entry DisplayName="Interface methods"> <Entry.Match> <And> <Kind Is="Method" /> <ImplementsInterface /> </And> </Entry.Match> <Entry.SortBy> <ImplementsInterface Immediate="True" /> <Name /> </Entry.SortBy> </Entry> <Entry DisplayName="Other methods"> <Entry.Match> <Kind Is="Method" /> </Entry.Match> <Entry.SortBy> <Access Order="Public Internal ProtectedInternal Protected Private" /> <Static /> <Name /> </Entry.SortBy> </Entry> <Entry DisplayName="Operators"> <Entry.Match> <Kind Is="Operator" /> </Entry.Match> </Entry> <Entry DisplayName="Nested structs" Priority="600"> <Entry.Match> <Kind Is="Struct" /> </Entry.Match> <Entry.SortBy> <Static /> <Access Order="Public Internal ProtectedInternal Protected Private" /> <Name /> </Entry.SortBy> </Entry> <Entry DisplayName="Nested classes" Priority="700"> <Entry.Match> <Kind Is="Class" /> </Entry.Match> <Entry.SortBy> <Static /> <Access Order="Public Internal ProtectedInternal Protected Private" /> <Name /> </Entry.SortBy> </Entry> <Entry DisplayName="All other members" /> </TypePattern> </Patterns> <?xml version="1.0" encoding="utf-8" ?> <!-- I. Overall I.1 Each pattern can have <Match>....</Match> element. For the given type declaration, the pattern with the match, evaluated to 'true' with the largest weight, will be used I.2 Each pattern consists of the sequence of <Entry>...</Entry> elements. Type member declarations are distributed between entries I.3 If pattern has RemoveAllRegions="true" attribute, then all regions will be cleared prior to reordering. Otherwise, only auto-generated regions will be cleared I.4 The contents of each entry is sorted by given keys (First key is primary, next key is secondary, etc). Then the declarations are grouped and en-regioned by given property II. Available match operands Each operand may have Weight="..." attribute. This weight will be added to the match weight if the operand is evaluated to 'true'. The default weight is 1 II.1 Boolean functions: II.1.1 <And>....</And> II.1.2 <Or>....</Or> II.1.3 <Not>....</Not> II.2 Operands II.2.1 <Kind Is="..."/>. Kinds are: class, struct, interface, enum, delegate, type, constructor, destructor, property, indexer, method, operator, field, constant, event, member II.2.2 <Name Is="..." [IgnoreCase="true/false"] />. The 'Is' attribute contains regular expression II.2.3 <HasAttribute CLRName="..." [Inherit="true/false"] />. The 'CLRName' attribute contains regular expression II.2.4 <Access Is="..."/>. The 'Is' values are: public, protected, internal, protected internal, private II.2.5 <Static/> II.2.6 <Abstract/> II.2.7 <Virtual/> II.2.8 <Override/> II.2.9 <Sealed/> II.2.10 <Readonly/> II.2.11 <ImplementsInterface CLRName="..."/>. The 'CLRName' attribute contains regular expression II.2.12 <HandlesEvent /> --> <Patterns xmlns="urn:shemas-jetbrains-com:member-reordering-patterns"> <!--Do not reorder COM interfaces--> <Pattern> <Match> <And Weight="100"> <Kind Is="interface"/> <HasAttribute CLRName="System.Runtime.InteropServices.InterfaceTypeAttribute"/> </And> </Match> </Pattern> <!--Default pattern--> <Pattern> <!--public delegate--> <Entry> <Match> <And Weight="100"> <Access Is="public"/> <Kind Is="delegate"/> </And> </Match> <Sort> <Name/> </Sort> <Group Region="Delegates"/> </Entry> <!--public enum--> <Entry> <Match> <And Weight="100"> <Access Is="public"/> <Kind Is="enum"/> </And> </Match> <Sort> <Name/> </Sort> <Group> <Name Region="${Name} enum"/> </Group> </Entry> <!--fields and constants--> <Entry> <Match> <Or> <Kind Is="constant"/> <Kind Is="field"/> </Or> </Match> <Sort> <Name/> </Sort> </Entry> <!--Constructors. Place static one first--> <Entry> <Match> <Kind Is="constructor"/> </Match> <Sort> <Static/> </Sort> </Entry> <!--properties, indexers--> <Entry> <Match> <Or> <Kind Is="property"/> <Kind Is="indexer"/> </Or> </Match> <Sort> <Name/> </Sort> </Entry> <!--all other members--> <Entry> <Sort> <Name/> </Sort> </Entry> <!--nested types--> <Entry> <Match> <Kind Is="type"/> </Match> <Sort> <Name/> </Sort> <Group> <Name Region="Nested type: ${Name}"/> </Group> </Entry> </Pattern> </Patterns> CustomLayout False False True UseExplicitType UseVarWhenEvident UseVarWhenEvident True False ATI CUSIP IO IP PDF RPC RPO XML On$event$ exception <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="I" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb_AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb"><ExtraRule Prefix="" Suffix="" Style="aaBb" /></Policy> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="T" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="I" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="T" Suffix="" Style="AaBb" /> $object$_On$event$ exception <Policy Inspect="True" Prefix="" Suffix="" Style="AA_BB" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="I" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AA_BB" /> <Policy Inspect="True" Prefix="m_" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="m_" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AA_BB" /> <Policy Inspect="True" Prefix="T" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy><Descriptor Staticness="Static, Instance" AccessRightKinds="Private" Description="Private Events"><ElementKinds><Kind Name="EVENT" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="m_" Suffix="" Style="AaBb" /></Policy> <Policy><Descriptor Staticness="Static, Instance" AccessRightKinds="Private, Protected, ProtectedInternal, Internal" Description="Dual rules for readonly/constants"><ElementKinds><Kind Name="READONLY_FIELD" /><Kind Name="CONSTANT_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AA_BB"><ExtraRule Prefix="m_" Suffix="" Style="AaBb" /></Policy></Policy> <Policy><Descriptor Staticness="Static, Instance" AccessRightKinds="Public" Description="Dual rules for public fields"><ElementKinds><Kind Name="READONLY_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb"><ExtraRule Prefix="" Suffix="" Style="AA_BB" /></Policy></Policy> <Policy><Descriptor Staticness="Static, Instance" AccessRightKinds="Public" Description="Dual rules for public fields"><ElementKinds><Kind Name="READONLY_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb"><ExtraRule Prefix="" Suffix="" Style="AA_BB" /></Policy></Policy> <Policy><Descriptor Staticness="Static, Instance" AccessRightKinds="Private, Protected, ProtectedInternal, Internal" Description="Dual rules for readonly/constants"><ElementKinds><Kind Name="CONSTANT_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AA_BB"><ExtraRule Prefix="m_" Suffix="" Style="AaBb" /></Policy></Policy> <Policy><Descriptor Staticness="Static, Instance" AccessRightKinds="Private" Description="Private Events"><ElementKinds><Kind Name="EVENT" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="m_" Suffix="" Style="AaBb" /></Policy> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> C:\Users\rc04727\AppData\Local\JetBrains\Transient\ReSharperPlatformVs15\v11_ede7cb44\SolutionCaches LIVE_MONITOR LIVE_MONITOR DO_NOTHING LIVE_MONITOR LIVE_MONITOR LIVE_MONITOR LIVE_MONITOR LIVE_MONITOR LIVE_MONITOR LIVE_MONITOR LIVE_MONITOR DO_NOTHING LIVE_MONITOR True True True True True True True True True True True True True True True True True True Always False ForWarningsOrErrors tag 10 ( ) 14 15 #region(WEI) 4 16 False using False 0 NUnit Test 1 Class (WEI) False 2 4 3 True True Events Imported 1/13/2012 Create Thread-Safe Event True Event with Synchronous Invoke True public event $EventHandler$<$EventArgs$> $EventName$ { add { lock(m_EventLock) { m_$PrivateEventVariable$Event += value; } } remove { lock (m_EventLock) { m_$PrivateEventVariable$Event -= value; } } } $END$ private event $EventHandler$<$EventArgs$> m_$PrivateEventVariable$Event; /// <summary> /// Raises the $EventName$ event synchronously. /// </summary> /// <param name="args">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void Raise$EventName$($EventArgs$ args) { $EventHandler$<$EventArgs$> handler = m_$PrivateEventVariable$Event; if (handler != null) { handler(this, args); } } True 1 True 0 True 2 True capitalize(EventName) 3 True 2.0 InCSharpTypeMember True True cs Test True NUnit Test True True #region Namespaces using System; using NUnit.Framework; #endregion namespace $NameSpace$ { [TestFixture] public class $TestClass$ { #region Public Methods #region Test Administration [TestFixtureSetUp] public void TestFixtureSetup() { } [TestFixtureTearDown] public void TestFixtureTeardown() { } [SetUp] public void Setup() { } [TearDown] public void Teardown() { } #endregion Test Administration #region Test Methods #endregion Test Methods #endregion Public Methods #region Private Fields #endregion Private Fields #region Private Methods #endregion Private Methods } } True 0 True 1 True InCSharpProjectFile True True IDisposable Implementation for a Base Class True IDisposable Base Class True #region IDisposable Implementation public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } // NOTE: Leave out the finalizer altogether if this class doesn't own // unmanaged resources itself, but leave the other methods // exactly as they are. ~$ClassName$() { Dispose(false); } protected virtual void Dispose(bool disposing) { // Even if we don't have a finalizer, we need to check the disposing argument. // It might still be false if we're being finalized due to the fact that a derived // class introduced a finalizer. if (disposing) { // free managed resources } // free native resources if there are any. } #endregion IDisposable Implementation True 0 True 2.0 InCSharpTypeMember True True Imported 1/13/2012 WEI Standard cs Class False WEI Class True Class (WEI) True #region Namespaces using System; #endregion Namespaces namespace $NAMESPACE$ { public class $CLASS$ { #region Constructors public $CLASS$() { $END$ } #endregion Constructors #region Public Properties #endregion Public Properties #region Public Methods #endregion Public Methods #region Private Fields #endregion Private Fields #region Private Methods #endregion Private Methods } } True getFileNameWithoutExtension() 0 True fileDefaultNamespace() 1 True InCSharpProjectFile True True Imported 1/13/2012 Methods Unit Test Method True Test Method True [Test] [Category("")] public void $MethodUnderTest$_$Scenario$_$ExpectedResult$() { // Arrange $END$ // Act // Assert } True 2 True 0 True 1 True 2.0 InCSharpTypeMember True True Imported 1/13/2012 LLBLGen Templates Insert a Using(DataAccessAdapter) True UDAA True using(DataAccessAdapter dataAccessAdapter = new DataAccessAdapter(ConnectionString.GetString("connString"), true)) { $END$ } True 2.0 InCSharpStatement True True ( ) True True ($SELECTION$) True 2.0 InCSharpExpression True True Inserts a strongly-type identifier property. True 0 True getCurrentTime("yyyy_MM_dd_HHmmss") -1 1 True True 2.0 InCSharpFile InsertIdProperty True /// <inheritdoc /> public override $Type$Id $Type$Id => new $Type$Id($When$); True True Imported 1/13/2012 LLBLGen Templates Retrieve Collection with a Filter True FetchCollection True EntityCollection $ResultCollectionName$Collection = new EntityCollection(new $EntityType$EntityFactory()); using(DataAccessAdapter dataAccessAdapter = new DataAccessAdapter(ConnectionString.GetString("connString"), true)) { RelationPredicateBucket filterBucket = new RelationPredicateBucket(); IPredicateExpression predicateExpression = new PredicateExpression(); predicateExpression.Add(PredicateFactory.CompareValue($EntityType$FieldIndex.$FilterField$, ComparisonOperator.Equal, $FilterValue$)); filterBucket.PredicateExpression.Add(predicateExpression); dataAccessAdapter.FetchEntityCollection($ResultCollectionName$Collection, filterBucket); } $END$ True 0 True complete() 2 True 3 True decapitalize(EntityType) 1 True 2.0 InCSharpStatement True True Inserts a strongly-typed identifier. True 0 False True getCurrentTime("yyyy_MM_dd_HHmmss") -1 1 True True 2.0 InCSharpFile InsertId True new $Type$Id($When$) True True Calls the session server to validate a user True ValidateUser True SessionServerFactory.GetSessionServer().IsValid(requestorInformation.SessionId); True 2.0 InCSharpStatement True True Imported 1/13/2012 LLBLGen Templates Retrieve Single Entity with a Filter True FetchEntityWithFilter True EntityCollection $CollectionType$Collection = new EntityCollection(new $EntityType$EntityFactory()); using(DataAccessAdapter dataAccessAdapter = new DataAccessAdapter(ConnectionString.GetString("connString"), true)) { RelationPredicateBucket filterBucket = new RelationPredicateBucket(); IPredicateExpression predicateExpression = new PredicateExpression(); predicateExpression.Add(PredicateFactory.CompareValue($EntityType$FieldIndex.$FilterField$, ComparisonOperator.Equal, $FilterValue$)); filterBucket.PredicateExpression.Add(predicateExpression); dataAccessAdapter.FetchEntityCollection($CollectionType$Collection, filterBucket); } $EntityType$Entity $EntityObject$ = null; if ($CollectionType$Collection.Count > 0) $EntityObject$ = ($EntityType$Entity)$CollectionType$Collection[0]; $END$ True decapitalize(EntityType) 1 True suggestVariableName() 4 True 0 True complete() 2 True 3 True 2.0 InCSharpStatement True True Events Imported 1/13/2012 Create a thread-safe event with an asynchronous raise method True Event with Asynchronous Invoke True public event $EventHandler$<$EventArgs$> $EventName$ { add { lock(m_EventLock) { m_$PrivateEventVariable$Event += value; } } remove { lock (m_EventLock) { m_$PrivateEventVariable$Event -= value; } } } $END$ private event $EventHandler$<$EventArgs$> m_$PrivateEventVariable$Event; /// <summary> /// Raises the $EventName$ event Asynchronously. /// </summary> /// <param name="args">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void Raise$EventName$Async($EventArgs$ args) { Delegate[] subscribers = null; lock (m_EventLock) { if (m_$PrivateEventVariable$Event != null) { subscribers = m_$PrivateEventVariable$Event.GetInvocationList(); } } if (subscribers != null) { foreach ($EventHandler$ subscriber in subscribers) { subscriber.BeginInvoke(this, args, null, null); } } } True 1 True 0 True 2 True capitalize(EventName) 3 True 2.0 InCSharpTypeMember True True Imported 1/13/2012 LLBLGen Templates Fetch an entity with a joined relation True FetchEntityWithJoin True EntityCollection $CollectionType$Collection = new EntityCollection(new $EntityType1$EntityFactory()); using (DataAccessAdapter dataAccessAdapter = new DataAccessAdapter(ConnectionString.GetString("connString"), true)) { RelationPredicateBucket filterBucket = new RelationPredicateBucket(); // Filter The First Entity on a Field Value IPredicateExpression predicateExpression = new PredicateExpression(); predicateExpression.Add(PredicateFactory.CompareValue($EntityType1$FieldIndex.$FilterField1$, ComparisonOperator.Equal, $FilterValue1$)); filterBucket.PredicateExpression.Add(predicateExpression); // Add the Join Relation filterBucket.Relations.Add($EntityType1$Entity.Relations.$EntityRelationship$); // Filter The Second Entity on a Field Value IPredicateExpression predicateExpression$EntityType2$ = new PredicateExpression(); predicateExpression$EntityType2$.Add(PredicateFactory.CompareValue($EntityType2$FieldIndex.$FilterField2$, ComparisonOperator.Equal, $FilterValue2$)); filterBucket.PredicateExpression.Add(predicateExpressionIdentifier); // Prefetch Joined Entity IPrefetchPath2 prefetchPath = new PrefetchPath2((int)EntityType.$EntityType1$Entity); prefetchPath.Add($EntityType1$Entity.PrefetchPath$EntityType2$, 0, predicateExpression$EntityType2$, new $EntityType2$EntityFactory()); dataAccessAdapter.FetchEntityCollection($CollectionType$Collection, filterBucket, prefetchPath); } $EntityType1$Entity $EntityObject$; if ($CollectionType$Collection.Count > 0) { $EntityObject$ = ($EntityType1$Entity)$CollectionType$Collection[0]; // Use the values in $EntityObject$ and the related entity $EntityType2$ } True decapitalize(EntityType1) 0 True suggestVariableName() 8 True complete() 4 True 1 True 5 True complete() 2 True complete() 6 True 3 True 7 True 2.0 InCSharpStatement False False True True Imported 1/13/2012 LLBLGen Templates Fetch selected columns from single Entity True FetchSelectedColumns True using(DataAccessAdapter dataAccessAdapter = new DataAccessAdapter(ConnectionString.GetString("connString"), true)) { ResultsetFields resultsetFields = new ResultsetFields($NUMBEROFFIELDS$); int fieldIndex = 0; resultsetFields.DefineField($ENTITY_TYPE$Fields.$FIELD1$, fieldIndex++); resultsetFields.DefineField($ENTITY_TYPE$Fields.$FIELD2$, fieldIndex++); // Add more fields as needed. Number of added fields must match parameter in constructor for ResultSetFields DataTable resultSet = new DataTable(); dataAccessAdapter.FetchTypedList(resultsetFields, resultSet, null, $DISTINCT_TRUE_FALSE$); } $END$ True 4 True 1 True 2 True 3 True 0 True 2.0 InCSharpStatement True True Imported 1/13/2012 LLBLGen Templates Retrieve an Entity by its Primary Key True FetchEntity True $EntityType$Entity $EntityObject$ = new $EntityType$Entity($PrimaryKeyValue$); bool found; using(DataAccessAdapter dataAccessAdapter = new DataAccessAdapter(ConnectionString.GetString("connString"), true)) { found = dataAccessAdapter.FetchEntity($EntityObject$); } $END$ True suggestVariableName() 1 True 0 True 2 True 2.0 InCSharpStatement True True Imported 1/13/2012 LLBLGen Templates Delete an entity True DeleteEntity True $EntityType$Entity $EntityObject$ = new $EntityType$Entity($PrimaryKeyValue$); bool found; using(DataAccessAdapter dataAccessAdapter = new DataAccessAdapter(ConnectionString.GetString("connString"), true)) { found = dataAccessAdapter.DeleteEntity($EntityObject$); } $END$ True 1 True 0 True 2 True 2.0 InCSharpStatement True True Imported 1/13/2012 LLBLGen Templates Insert an Entity with LLBLGen True InsertEntity True $EntityType$Entity $EntityObject$ = new $EntityType$Entity(); //$EntityObject$.fieldName1 = fieldValue1; using(DataAccessAdapter dataAccessAdapter = new DataAccessAdapter(ConnectionString.GetString("connString"), true)) { dataAccessAdapter.SaveEntity($EntityObject$); // newIdentityKey = $EntityObject$.IdentityKeyField; } True suggestVariableName() 1 True 0 True 2.0 InCSharpStatement