Browse Source
modified Resharper settings to match StyleCop on typeof spacing Signed-off-by: Marcus Cuda <marcus@cuda.net>pull/2/head
8 changed files with 269 additions and 867 deletions
@ -1,868 +1,62 @@ |
|||||
<Configuration> |
<CodeStyleSettings> |
||||
<CodeStyleSettings> |
<CSharp> |
||||
<ExternalPath IsNull="False"> |
<FormatSettings> |
||||
</ExternalPath> |
<INDENT_SIZE>4</INDENT_SIZE> |
||||
<Sharing>SOLUTION</Sharing> |
<MODIFIERS_ORDER IsNull="False"> |
||||
<AgentSmithCSharpStyleSettings version="1"> |
<Item>public</Item> |
||||
<CodeStyleSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
<Item>protected</Item> |
||||
<CustomDictionaries> |
<Item>internal</Item> |
||||
<Dictionaries> |
<Item>private</Item> |
||||
<CustomDictionary> |
<Item>new</Item> |
||||
<Name>en-US</Name> |
<Item>abstract</Item> |
||||
<CaseSensitive>false</CaseSensitive> |
<Item>virtual</Item> |
||||
<UserWords>Wikipedia |
<Item>override</Item> |
||||
Cholesky |
<Item>sealed</Item> |
||||
Bluestein |
<Item>static</Item> |
||||
Chebyshev</UserWords> |
<Item>readonly</Item> |
||||
</CustomDictionary> |
<Item>extern</Item> |
||||
</Dictionaries> |
<Item>unsafe</Item> |
||||
</CustomDictionaries> |
<Item>volatile</Item> |
||||
<StringsDictionary>en-US</StringsDictionary> |
</MODIFIERS_ORDER> |
||||
<IdentifierDictionary>en-US</IdentifierDictionary> |
<SPACE_BEFORE_TYPEOF_PARENTHESES>False</SPACE_BEFORE_TYPEOF_PARENTHESES> |
||||
<LastSelectedCustomDictionary>en-US</LastSelectedCustomDictionary> |
</FormatSettings> |
||||
<CommentsSettings> |
<UsingsSettings /> |
||||
<DictionaryName>en-US</DictionaryName> |
|
||||
<CommentMatch> |
|
||||
<Match> |
|
||||
<AccessLevel>Public Protected ProtectedInternal</AccessLevel> |
|
||||
<Declaration>Any</Declaration> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</CommentMatch> |
|
||||
<CommentNotMatch /> |
|
||||
<SuppressIfBaseHasComment>false</SuppressIfBaseHasComment> |
|
||||
<MaxLineLength>120</MaxLineLength> |
|
||||
</CommentsSettings> |
|
||||
<NamingConventionSettings> |
|
||||
<Rules> |
|
||||
<NamingConventionRule> |
|
||||
<IsDisabled>false</IsDisabled> |
|
||||
<Matches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Class</Declaration> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Enum</Declaration> |
|
||||
<MarkedWithAttribute /> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>EnumerationMember</Declaration> |
|
||||
<MarkedWithAttribute /> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</Matches> |
|
||||
<NotMatches /> |
|
||||
<Description>Classes, Enumerations, Enumeration values should be named in Pascal</Description> |
|
||||
<MustHavePrefixes /> |
|
||||
<MustNotHavePrefixes> |
|
||||
<string>_</string> |
|
||||
<string>m_</string> |
|
||||
</MustNotHavePrefixes> |
|
||||
<Rule>Pascal</Rule> |
|
||||
<MustHaveSuffixes /> |
|
||||
<MustNotHaveSuffixes /> |
|
||||
</NamingConventionRule> |
|
||||
<NamingConventionRule> |
|
||||
<IsDisabled>false</IsDisabled> |
|
||||
<Matches> |
|
||||
<Match> |
|
||||
<AccessLevel>Public Internal Protected ProtectedInternal</AccessLevel> |
|
||||
<Declaration>Property</Declaration> |
|
||||
<MarkedWithAttribute /> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
<Match> |
|
||||
<AccessLevel>Public Internal Protected ProtectedInternal</AccessLevel> |
|
||||
<Declaration>Method</Declaration> |
|
||||
<MarkedWithAttribute /> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
<Match> |
|
||||
<AccessLevel>Public Internal Protected ProtectedInternal</AccessLevel> |
|
||||
<Declaration>Event</Declaration> |
|
||||
<MarkedWithAttribute /> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</Matches> |
|
||||
<NotMatches /> |
|
||||
<Description>Non private properties, methods, events should be in pascal.</Description> |
|
||||
<MustHavePrefixes /> |
|
||||
<MustNotHavePrefixes> |
|
||||
<string>_</string> |
|
||||
<string>m_</string> |
|
||||
</MustNotHavePrefixes> |
|
||||
<Rule>Pascal</Rule> |
|
||||
<MustHaveSuffixes /> |
|
||||
<MustNotHaveSuffixes /> |
|
||||
</NamingConventionRule> |
|
||||
<NamingConventionRule> |
|
||||
<IsDisabled>false</IsDisabled> |
|
||||
<Matches> |
|
||||
<Match> |
|
||||
<AccessLevel>Private</AccessLevel> |
|
||||
<Declaration>Property</Declaration> |
|
||||
<MarkedWithAttribute /> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
<Match> |
|
||||
<AccessLevel>Private</AccessLevel> |
|
||||
<Declaration>Method</Declaration> |
|
||||
<MarkedWithAttribute /> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
<Match> |
|
||||
<AccessLevel>Private</AccessLevel> |
|
||||
<Declaration>Event</Declaration> |
|
||||
<MarkedWithAttribute /> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</Matches> |
|
||||
<NotMatches /> |
|
||||
<Description>Private properties, methods, events should be in pascal.</Description> |
|
||||
<MustHavePrefixes /> |
|
||||
<MustNotHavePrefixes> |
|
||||
<string>_</string> |
|
||||
<string>m_</string> |
|
||||
</MustNotHavePrefixes> |
|
||||
<Rule>Pascal</Rule> |
|
||||
<MustHaveSuffixes /> |
|
||||
<MustNotHaveSuffixes /> |
|
||||
</NamingConventionRule> |
|
||||
<NamingConventionRule> |
|
||||
<IsDisabled>false</IsDisabled> |
|
||||
<Matches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Field</Declaration> |
|
||||
<MarkedWithAttribute /> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</Matches> |
|
||||
<NotMatches /> |
|
||||
<Description>Fields should be underscore camel.</Description> |
|
||||
<MustHavePrefixes> |
|
||||
<string>_</string> |
|
||||
</MustHavePrefixes> |
|
||||
<MustNotHavePrefixes> |
|
||||
<string>m_</string> |
|
||||
</MustNotHavePrefixes> |
|
||||
<Rule>Camel</Rule> |
|
||||
<MustHaveSuffixes /> |
|
||||
<MustNotHaveSuffixes /> |
|
||||
</NamingConventionRule> |
|
||||
<NamingConventionRule> |
|
||||
<IsDisabled>false</IsDisabled> |
|
||||
<Matches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Variable</Declaration> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</Matches> |
|
||||
<Description>Variable should be declared in camel.</Description> |
|
||||
<MustHavePrefixes /> |
|
||||
<MustNotHavePrefixes> |
|
||||
<string>_</string> |
|
||||
<string>m_</string> |
|
||||
</MustNotHavePrefixes> |
|
||||
<Rule>Camel</Rule> |
|
||||
<MustHaveSuffixes /> |
|
||||
<MustNotHaveSuffixes /> |
|
||||
</NamingConventionRule> |
|
||||
<NamingConventionRule> |
|
||||
<IsDisabled>false</IsDisabled> |
|
||||
<Matches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Parameter</Declaration> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</Matches> |
|
||||
<Description>Function parameters should be in camel.</Description> |
|
||||
<MustHavePrefixes /> |
|
||||
<MustNotHavePrefixes> |
|
||||
<string>_</string> |
|
||||
<string>m_</string> |
|
||||
</MustNotHavePrefixes> |
|
||||
<Rule>Camel</Rule> |
|
||||
<MustHaveSuffixes /> |
|
||||
<MustNotHaveSuffixes /> |
|
||||
</NamingConventionRule> |
|
||||
<NamingConventionRule> |
|
||||
<IsDisabled>false</IsDisabled> |
|
||||
<Matches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Namespace</Declaration> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</Matches> |
|
||||
<Description>Namespaces should be in Pascal.</Description> |
|
||||
<MustHavePrefixes /> |
|
||||
<MustNotHavePrefixes> |
|
||||
<string>_</string> |
|
||||
<string>m_</string> |
|
||||
</MustNotHavePrefixes> |
|
||||
<Rule>Pascal</Rule> |
|
||||
<MustHaveSuffixes /> |
|
||||
<MustNotHaveSuffixes /> |
|
||||
</NamingConventionRule> |
|
||||
<NamingConventionRule> |
|
||||
<IsDisabled>true</IsDisabled> |
|
||||
<Matches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Constant</Declaration> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</Matches> |
|
||||
<Description>Constants should be in capital.</Description> |
|
||||
<MustHavePrefixes /> |
|
||||
<MustNotHavePrefixes /> |
|
||||
<Rule>UpperCase</Rule> |
|
||||
<MustHaveSuffixes /> |
|
||||
<MustNotHaveSuffixes /> |
|
||||
</NamingConventionRule> |
|
||||
<NamingConventionRule> |
|
||||
<IsDisabled>false</IsDisabled> |
|
||||
<Matches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Any</Declaration> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</Matches> |
|
||||
<NotMatches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Constant</Declaration> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</NotMatches> |
|
||||
<Description>Acronyms should not have more than 2 characters.</Description> |
|
||||
<MustHavePrefixes /> |
|
||||
<MustNotHavePrefixes /> |
|
||||
<Rule>MatchesRegex</Rule> |
|
||||
<MustHaveSuffixes /> |
|
||||
<MustNotHaveSuffixes /> |
|
||||
<Regex>^(?>(XML|SQL|[A-Z]{0,2})[A-Z]?([^A-Z]|$)|[^A-Z]+)*$</Regex> |
|
||||
</NamingConventionRule> |
|
||||
<NamingConventionRule> |
|
||||
<IsDisabled>false</IsDisabled> |
|
||||
<Matches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Any</Declaration> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</Matches> |
|
||||
<NotMatches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Constant</Declaration> |
|
||||
<MarkedWithAttribute /> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Field</Declaration> |
|
||||
<MarkedWithAttribute /> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
<Match> |
|
||||
<AccessLevel>Private</AccessLevel> |
|
||||
<Declaration>Method</Declaration> |
|
||||
<MarkedWithAttribute /> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
<Match> |
|
||||
<AccessLevel>None</AccessLevel> |
|
||||
<Declaration>Namespace</Declaration> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</NotMatches> |
|
||||
<Description>Names should not have underscore character</Description> |
|
||||
<MustHavePrefixes /> |
|
||||
<MustNotHavePrefixes /> |
|
||||
<Rule>NotMatchesRegex</Rule> |
|
||||
<MustHaveSuffixes /> |
|
||||
<MustNotHaveSuffixes /> |
|
||||
<Regex>(?<remove>_)</Regex> |
|
||||
</NamingConventionRule> |
|
||||
<NamingConventionRule> |
|
||||
<IsDisabled>false</IsDisabled> |
|
||||
<Matches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Class</Declaration> |
|
||||
<MarkedWithAttribute>NUnit.Framework.TestFixtureAttribute</MarkedWithAttribute> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</Matches> |
|
||||
<Description>TestFixtures should end with Test.</Description> |
|
||||
<MustHavePrefixes /> |
|
||||
<MustNotHavePrefixes> |
|
||||
<string>Test</string> |
|
||||
</MustNotHavePrefixes> |
|
||||
<Rule>None</Rule> |
|
||||
<MustHaveSuffixes> |
|
||||
<string>Test</string> |
|
||||
</MustHaveSuffixes> |
|
||||
<MustNotHaveSuffixes /> |
|
||||
</NamingConventionRule> |
|
||||
<NamingConventionRule> |
|
||||
<IsDisabled>false</IsDisabled> |
|
||||
<Matches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Method</Declaration> |
|
||||
<MarkedWithAttribute>NUnit.Framework.TestAttribute</MarkedWithAttribute> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</Matches> |
|
||||
<Description>Test methods should start with Test.</Description> |
|
||||
<MustHavePrefixes> |
|
||||
<string>Test</string> |
|
||||
</MustHavePrefixes> |
|
||||
<MustNotHavePrefixes /> |
|
||||
<Rule>None</Rule> |
|
||||
<MustHaveSuffixes /> |
|
||||
<MustNotHaveSuffixes> |
|
||||
<string>Test</string> |
|
||||
</MustNotHaveSuffixes> |
|
||||
</NamingConventionRule> |
|
||||
<NamingConventionRule> |
|
||||
<IsDisabled>false</IsDisabled> |
|
||||
<Matches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Enum</Declaration> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</Matches> |
|
||||
<Description>Enumerations should not end with Enum.</Description> |
|
||||
<MustHavePrefixes /> |
|
||||
<MustNotHavePrefixes /> |
|
||||
<Rule>None</Rule> |
|
||||
<MustHaveSuffixes /> |
|
||||
<MustNotHaveSuffixes> |
|
||||
<string>Enum</string> |
|
||||
</MustNotHaveSuffixes> |
|
||||
</NamingConventionRule> |
|
||||
<NamingConventionRule> |
|
||||
<IsDisabled>false</IsDisabled> |
|
||||
<Matches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>EnumerationMember</Declaration> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</Matches> |
|
||||
<Description>Do not name enumerations reserved.</Description> |
|
||||
<MustHavePrefixes /> |
|
||||
<MustNotHavePrefixes /> |
|
||||
<Rule>NotMatchesRegex</Rule> |
|
||||
<MustHaveSuffixes /> |
|
||||
<MustNotHaveSuffixes /> |
|
||||
<Regex>(?<remove>(reserved|Reserved))</Regex> |
|
||||
</NamingConventionRule> |
|
||||
<NamingConventionRule> |
|
||||
<IsDisabled>false</IsDisabled> |
|
||||
<Matches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Event</Declaration> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</Matches> |
|
||||
<Description>Event should not have Before or After prefix.</Description> |
|
||||
<MustHavePrefixes /> |
|
||||
<MustNotHavePrefixes> |
|
||||
<string>Before</string> |
|
||||
<string>After</string> |
|
||||
</MustNotHavePrefixes> |
|
||||
<Rule>None</Rule> |
|
||||
<MustHaveSuffixes /> |
|
||||
<MustNotHaveSuffixes /> |
|
||||
</NamingConventionRule> |
|
||||
<NamingConventionRule> |
|
||||
<IsDisabled>false</IsDisabled> |
|
||||
<Matches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Enum</Declaration> |
|
||||
<MarkedWithAttribute>System.FlagsAttribute</MarkedWithAttribute> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</Matches> |
|
||||
<Description>Flags enums should have plural names</Description> |
|
||||
<MustHavePrefixes /> |
|
||||
<MustNotHavePrefixes /> |
|
||||
<Rule>None</Rule> |
|
||||
<MustHaveSuffixes> |
|
||||
<string>s</string> |
|
||||
</MustHaveSuffixes> |
|
||||
<MustNotHaveSuffixes /> |
|
||||
</NamingConventionRule> |
|
||||
<NamingConventionRule> |
|
||||
<IsDisabled>true</IsDisabled> |
|
||||
<Matches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Enum</Declaration> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</Matches> |
|
||||
<NotMatches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Enum</Declaration> |
|
||||
<MarkedWithAttribute>System.FlagsAttribute</MarkedWithAttribute> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</NotMatches> |
|
||||
<Description>Enums that are not flags should not have plural names</Description> |
|
||||
<MustHavePrefixes /> |
|
||||
<MustNotHavePrefixes /> |
|
||||
<Rule>None</Rule> |
|
||||
<MustHaveSuffixes /> |
|
||||
<MustNotHaveSuffixes> |
|
||||
<string>s</string> |
|
||||
</MustNotHaveSuffixes> |
|
||||
</NamingConventionRule> |
|
||||
<NamingConventionRule> |
|
||||
<IsDisabled>false</IsDisabled> |
|
||||
<Matches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Class</Declaration> |
|
||||
<InheritedFrom>System.Attribute</InheritedFrom> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</Matches> |
|
||||
<Description>Attribute should end with Attribute.</Description> |
|
||||
<MustHavePrefixes /> |
|
||||
<MustNotHavePrefixes /> |
|
||||
<Rule>None</Rule> |
|
||||
<MustHaveSuffixes> |
|
||||
<string>Attribute</string> |
|
||||
</MustHaveSuffixes> |
|
||||
<MustNotHaveSuffixes /> |
|
||||
</NamingConventionRule> |
|
||||
<NamingConventionRule> |
|
||||
<IsDisabled>false</IsDisabled> |
|
||||
<Matches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Class</Declaration> |
|
||||
<InheritedFrom>System.EventArgs</InheritedFrom> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</Matches> |
|
||||
<Description>EventArgs should end with EventArgs.</Description> |
|
||||
<MustHavePrefixes /> |
|
||||
<MustNotHavePrefixes /> |
|
||||
<Rule>None</Rule> |
|
||||
<MustHaveSuffixes> |
|
||||
<string>EventArgs</string> |
|
||||
</MustHaveSuffixes> |
|
||||
<MustNotHaveSuffixes /> |
|
||||
</NamingConventionRule> |
|
||||
<NamingConventionRule> |
|
||||
<IsDisabled>false</IsDisabled> |
|
||||
<Matches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Class</Declaration> |
|
||||
<InheritedFrom>System.Exception</InheritedFrom> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</Matches> |
|
||||
<Description>Exceptions should end with Exception.</Description> |
|
||||
<MustHavePrefixes /> |
|
||||
<MustNotHavePrefixes /> |
|
||||
<Rule>None</Rule> |
|
||||
<MustHaveSuffixes> |
|
||||
<string>Exception</string> |
|
||||
</MustHaveSuffixes> |
|
||||
<MustNotHaveSuffixes /> |
|
||||
</NamingConventionRule> |
|
||||
<NamingConventionRule> |
|
||||
<IsDisabled>false</IsDisabled> |
|
||||
<Matches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Class</Declaration> |
|
||||
<InheritedFrom>System.Collections.Stack</InheritedFrom> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Class</Declaration> |
|
||||
<InheritedFrom>System.Collections.Generic.Stack</InheritedFrom> |
|
||||
<MarkedWithAttribute /> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</Matches> |
|
||||
<NotMatches /> |
|
||||
<Description>Stack should end with Collection or Stack.</Description> |
|
||||
<MustHavePrefixes /> |
|
||||
<MustNotHavePrefixes /> |
|
||||
<Rule>None</Rule> |
|
||||
<MustHaveSuffixes> |
|
||||
<string>Collection</string> |
|
||||
<string>Stack</string> |
|
||||
</MustHaveSuffixes> |
|
||||
<MustNotHaveSuffixes /> |
|
||||
</NamingConventionRule> |
|
||||
<NamingConventionRule> |
|
||||
<IsDisabled>false</IsDisabled> |
|
||||
<Matches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Class</Declaration> |
|
||||
<InheritedFrom>System.Collections.ICollection</InheritedFrom> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Class</Declaration> |
|
||||
<InheritedFrom>System.Collections.IEnumerable</InheritedFrom> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Class</Declaration> |
|
||||
<InheritedFrom>System.Collections.Generic.ICollection</InheritedFrom> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</Matches> |
|
||||
<NotMatches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Class</Declaration> |
|
||||
<InheritedFrom>System.Collections.Stack</InheritedFrom> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Class</Declaration> |
|
||||
<InheritedFrom>System.Collections.Queue</InheritedFrom> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Class</Declaration> |
|
||||
<InheritedFrom>System.Collections.Generic.Stack</InheritedFrom> |
|
||||
<MarkedWithAttribute /> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</NotMatches> |
|
||||
<Description>Collections should end with Collection.</Description> |
|
||||
<MustHavePrefixes /> |
|
||||
<MustNotHavePrefixes /> |
|
||||
<Rule>None</Rule> |
|
||||
<MustHaveSuffixes> |
|
||||
<string>Collection</string> |
|
||||
</MustHaveSuffixes> |
|
||||
<MustNotHaveSuffixes /> |
|
||||
</NamingConventionRule> |
|
||||
<NamingConventionRule> |
|
||||
<IsDisabled>false</IsDisabled> |
|
||||
<Matches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Class</Declaration> |
|
||||
<InheritedFrom>System.Collections.IDictionary</InheritedFrom> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Class</Declaration> |
|
||||
<InheritedFrom>System.Collections.Generic.IDictionary</InheritedFrom> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</Matches> |
|
||||
<Description>Dictionary should end with Dictionary.</Description> |
|
||||
<MustHavePrefixes /> |
|
||||
<MustNotHavePrefixes /> |
|
||||
<Rule>None</Rule> |
|
||||
<MustHaveSuffixes> |
|
||||
<string>Dictionary</string> |
|
||||
</MustHaveSuffixes> |
|
||||
<MustNotHaveSuffixes /> |
|
||||
</NamingConventionRule> |
|
||||
<NamingConventionRule> |
|
||||
<IsDisabled>false</IsDisabled> |
|
||||
<Matches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Class</Declaration> |
|
||||
<InheritedFrom>System.Collections.Queue</InheritedFrom> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</Matches> |
|
||||
<Description>Queue should end with Collection or Queue.</Description> |
|
||||
<MustHavePrefixes /> |
|
||||
<MustNotHavePrefixes /> |
|
||||
<Rule>None</Rule> |
|
||||
<MustHaveSuffixes> |
|
||||
<string>Collection</string> |
|
||||
<string>Queue</string> |
|
||||
</MustHaveSuffixes> |
|
||||
<MustNotHaveSuffixes /> |
|
||||
</NamingConventionRule> |
|
||||
<NamingConventionRule> |
|
||||
<IsDisabled>false</IsDisabled> |
|
||||
<Matches> |
|
||||
<Match> |
|
||||
<AccessLevel>Any</AccessLevel> |
|
||||
<Declaration>Interface</Declaration> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</Matches> |
|
||||
<Description>Interfaces should be in Pascal and start with I.</Description> |
|
||||
<MustHavePrefixes> |
|
||||
<string>I</string> |
|
||||
</MustHavePrefixes> |
|
||||
<MustNotHavePrefixes /> |
|
||||
<Rule>Pascal</Rule> |
|
||||
<MustHaveSuffixes /> |
|
||||
<MustNotHaveSuffixes /> |
|
||||
</NamingConventionRule> |
|
||||
</Rules> |
|
||||
<Exclusions /> |
|
||||
</NamingConventionSettings> |
|
||||
<IdentifiersToSpellCheck> |
|
||||
<Match> |
|
||||
<AccessLevel>Public Protected ProtectedInternal</AccessLevel> |
|
||||
<Declaration>Any</Declaration> |
|
||||
<IsReadOnly>Maybe</IsReadOnly> |
|
||||
<IsStatic>Maybe</IsStatic> |
|
||||
<ParamDirection>Any</ParamDirection> |
|
||||
</Match> |
|
||||
</IdentifiersToSpellCheck> |
|
||||
<IdentifiersNotToSpellCheck /> |
|
||||
<PatternsToIgnore> |
|
||||
<string>(?#email)\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*</string> |
|
||||
<string>(?#url)http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?</string> |
|
||||
</PatternsToIgnore> |
|
||||
</CodeStyleSettings> |
|
||||
</AgentSmithCSharpStyleSettings> |
|
||||
<CSharp> |
|
||||
<FormatSettings> |
|
||||
<ANONYMOUS_METHOD_DECLARATION_BRACES>NEXT_LINE</ANONYMOUS_METHOD_DECLARATION_BRACES> |
|
||||
<CASE_BLOCK_BRACES>NEXT_LINE</CASE_BLOCK_BRACES> |
|
||||
<FORCE_FIXED_BRACES_STYLE>ALWAYS_ADD</FORCE_FIXED_BRACES_STYLE> |
|
||||
<FORCE_FOR_BRACES_STYLE>ALWAYS_ADD</FORCE_FOR_BRACES_STYLE> |
|
||||
<FORCE_FOREACH_BRACES_STYLE>ALWAYS_ADD</FORCE_FOREACH_BRACES_STYLE> |
|
||||
<FORCE_IFELSE_BRACES_STYLE>ALWAYS_ADD</FORCE_IFELSE_BRACES_STYLE> |
|
||||
<FORCE_USING_BRACES_STYLE>ALWAYS_ADD</FORCE_USING_BRACES_STYLE> |
|
||||
<FORCE_WHILE_BRACES_STYLE>ALWAYS_ADD</FORCE_WHILE_BRACES_STYLE> |
|
||||
<INDENT_NESTED_FIXED_STMT>True</INDENT_NESTED_FIXED_STMT> |
|
||||
<INDENT_NESTED_USINGS_STMT>True</INDENT_NESTED_USINGS_STMT> |
|
||||
<INDENT_SIZE>4</INDENT_SIZE> |
|
||||
<INITIALIZER_BRACES>NEXT_LINE</INITIALIZER_BRACES> |
|
||||
<MODIFIERS_ORDER IsNull="False"> |
|
||||
<Item>public</Item> |
|
||||
<Item>protected</Item> |
|
||||
<Item>internal</Item> |
|
||||
<Item>private</Item> |
|
||||
<Item>new</Item> |
|
||||
<Item>abstract</Item> |
|
||||
<Item>virtual</Item> |
|
||||
<Item>override</Item> |
|
||||
<Item>sealed</Item> |
|
||||
<Item>static</Item> |
|
||||
<Item>readonly</Item> |
|
||||
<Item>extern</Item> |
|
||||
<Item>unsafe</Item> |
|
||||
<Item>volatile</Item> |
|
||||
</MODIFIERS_ORDER> |
|
||||
<PLACE_FIELD_ATTRIBUTE_ON_SAME_LINE>False</PLACE_FIELD_ATTRIBUTE_ON_SAME_LINE> |
|
||||
<PLACE_TYPE_CONSTRAINTS_ON_SAME_LINE>False</PLACE_TYPE_CONSTRAINTS_ON_SAME_LINE> |
|
||||
<PLACE_WHILE_ON_NEW_LINE>True</PLACE_WHILE_ON_NEW_LINE> |
|
||||
<SPACE_AFTER_TYPECAST_PARENTHESES>False</SPACE_AFTER_TYPECAST_PARENTHESES> |
|
||||
<SPACE_AROUND_MULTIPLICATIVE_OP>True</SPACE_AROUND_MULTIPLICATIVE_OP> |
|
||||
<SPACE_BEFORE_SIZEOF_PARENTHESES>False</SPACE_BEFORE_SIZEOF_PARENTHESES> |
|
||||
<SPACE_BEFORE_TYPEOF_PARENTHESES>False</SPACE_BEFORE_TYPEOF_PARENTHESES> |
|
||||
<SPACE_WITHIN_SINGLE_LINE_ARRAY_INITIALIZER_BRACES>True</SPACE_WITHIN_SINGLE_LINE_ARRAY_INITIALIZER_BRACES> |
|
||||
<WRAP_AFTER_DECLARATION_LPAR>True</WRAP_AFTER_DECLARATION_LPAR> |
|
||||
<WRAP_AFTER_INVOCATION_LPAR>True</WRAP_AFTER_INVOCATION_LPAR> |
|
||||
<WRAP_ARGUMENTS_STYLE>CHOP_IF_LONG</WRAP_ARGUMENTS_STYLE> |
|
||||
<WRAP_BEFORE_BINARY_OPSIGN>True</WRAP_BEFORE_BINARY_OPSIGN> |
|
||||
<WRAP_BEFORE_FIRST_TYPE_PARAMETER_CONSTRAINT>True</WRAP_BEFORE_FIRST_TYPE_PARAMETER_CONSTRAINT> |
|
||||
<WRAP_OBJECT_AND_COLLECTION_INITIALIZER_STYLE>CHOP_ALWAYS</WRAP_OBJECT_AND_COLLECTION_INITIALIZER_STYLE> |
|
||||
<WRAP_PARAMETERS_STYLE>CHOP_IF_LONG</WRAP_PARAMETERS_STYLE> |
|
||||
</FormatSettings> |
|
||||
<UsingsSettings> |
|
||||
<AddImportsToDeepestScope>True</AddImportsToDeepestScope> |
|
||||
</UsingsSettings> |
|
||||
<Naming2> |
|
||||
<ExceptionName IsNull="False"> |
|
||||
</ExceptionName> |
|
||||
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="TypesAndNamespaces" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="I" Suffix="" Style="AaBb" ElementKind="Interfaces" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="T" Suffix="" Style="AaBb" ElementKind="TypeParameters" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="MethodPropertyEvent" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="Locals" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="LocalConstants" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="Parameters" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="PublicFields" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="Constants" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="_" Suffix="" Style="aaBb" ElementKind="StaticReadonly" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="_" Suffix="" Style="aaBb" ElementKind="NotPublicStaticFields" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="_" Suffix="" Style="aaBb" ElementKind="NotPublicInstanceFields" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="EnumMember" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="Other" /> |
|
||||
</Naming2> |
|
||||
</CSharp> |
|
||||
<VB> |
|
||||
<FormatSettings> |
|
||||
<INDENT_SIZE>4</INDENT_SIZE> |
|
||||
</FormatSettings> |
|
||||
<ImportsSettings /> |
|
||||
<Naming2 /> |
|
||||
</VB> |
|
||||
<GenerateMemberBody /> |
|
||||
<Naming2> |
<Naming2> |
||||
<ExceptionName IsNull="False"> |
<ExceptionName IsNull="False"> |
||||
</ExceptionName> |
</ExceptionName> |
||||
<PredefinedRule Inspect="True" Prefix="_" Suffix="" Style="aaBb" ElementKind="StaticReadonly" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="TypesAndNamespaces" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="I" Suffix="" Style="AaBb" ElementKind="Interfaces" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="T" Suffix="" Style="AaBb" ElementKind="TypeParameters" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="MethodPropertyEvent" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="Locals" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="LocalConstants" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="Parameters" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="PublicFields" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="Constants" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="_" Suffix="" Style="aaBb" ElementKind="NotPublicStaticFields" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="_" Suffix="" Style="aaBb" ElementKind="NotPublicInstanceFields" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="EnumMember" /> |
|
||||
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="Other" /> |
|
||||
<Abbreviation Text="QR" /> |
|
||||
<Abbreviation Text="FFT" /> |
|
||||
<Abbreviation Text="LU" /> |
|
||||
<Abbreviation Text="DC" /> |
|
||||
<Abbreviation Text="DFT" /> |
|
||||
</Naming2> |
</Naming2> |
||||
</CodeStyleSettings> |
</CSharp> |
||||
<SharedSolutionTemplateManager> |
<VB> |
||||
<FileTemplates> |
<FormatSettings> |
||||
<Template uid="63c1d656-1b75-445c-a591-213f22b5a340" shortcut="" description="Math.NET Class" text="// <copyright file="$FILE$" company="Math.NET">
// Math.NET Numerics, part of the Math.NET Project
// http://mathnet.opensourcedotnet.info
//
// Copyright (c) $YEAR$ Math.NET
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// restriction, including without limitation the rights to use,
// copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following
// conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.
// </copyright>

namespace $NAMESPACE$
{
 public class $CLASS$ {$END$}
}" reformat="True" shortenQualifiedReferences="True"> |
<INDENT_SIZE>4</INDENT_SIZE> |
||||
<Context> |
</FormatSettings> |
||||
<ProjectLanguageContext language="CSharp" /> |
<ImportsSettings /> |
||||
</Context> |
<Naming2 /> |
||||
<Categories /> |
</VB> |
||||
<Variables> |
<GenerateMemberBody /> |
||||
<Variable name="FILE" expression="getFileName()" initialRange="0" /> |
<Naming2> |
||||
<Variable name="YEAR" expression="getCurrentDate("yyyy")" initialRange="-1" /> |
<ExceptionName IsNull="False"> |
||||
<Variable name="NAMESPACE" expression="fileDefaultNamespace()" initialRange="0" /> |
</ExceptionName> |
||||
<Variable name="CLASS" expression="getFileNameWithoutExtension()" initialRange="0" /> |
<PredefinedRule Inspect="True" Prefix="_" Suffix="" Style="aaBb" ElementKind="StaticReadonly" /> |
||||
</Variables> |
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="TypesAndNamespaces" /> |
||||
<CustomProperties> |
<PredefinedRule Inspect="True" Prefix="I" Suffix="" Style="AaBb" ElementKind="Interfaces" /> |
||||
<Property key="FileName" value="Class" /> |
<PredefinedRule Inspect="True" Prefix="T" Suffix="" Style="AaBb" ElementKind="TypeParameters" /> |
||||
<Property key="Extension" value="cs" /> |
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="MethodPropertyEvent" /> |
||||
<Property key="ValidateFileName" value="False" /> |
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="Locals" /> |
||||
</CustomProperties> |
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="LocalConstants" /> |
||||
</Template> |
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="Parameters" /> |
||||
</FileTemplates> |
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="PublicFields" /> |
||||
</SharedSolutionTemplateManager> |
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="Constants" /> |
||||
</Configuration> |
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="EnumMember" /> |
||||
|
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="Other" /> |
||||
|
<PredefinedRule Inspect="True" Prefix="_" Suffix="" Style="aaBb" ElementKind="PrivateInstanceFields" /> |
||||
|
<PredefinedRule Inspect="True" Prefix="_" Suffix="" Style="aaBb" ElementKind="PrivateStaticFields" /> |
||||
|
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="PrivateConstants" /> |
||||
|
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="PrivateStaticReadonly" /> |
||||
|
<Abbreviation Text="QR" /> |
||||
|
<Abbreviation Text="FFT" /> |
||||
|
<Abbreviation Text="LU" /> |
||||
|
<Abbreviation Text="DC" /> |
||||
|
<Abbreviation Text="DFT" /> |
||||
|
</Naming2> |
||||
|
</CodeStyleSettings> |
||||
@ -0,0 +1,130 @@ |
|||||
|
// <copyright file="AlgorithmFactory.cs" company="Math.NET">
|
||||
|
// Math.NET Numerics, part of the Math.NET Project
|
||||
|
// http://mathnet.opensourcedotnet.info
|
||||
|
// Copyright (c) 2009 Math.NET
|
||||
|
// Permission is hereby granted, free of charge, to any person
|
||||
|
// obtaining a copy of this software and associated documentation
|
||||
|
// files (the "Software"), to deal in the Software without
|
||||
|
// restriction, including without limitation the rights to use,
|
||||
|
// copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
|
// copies of the Software, and to permit persons to whom the
|
||||
|
// Software is furnished to do so, subject to the following
|
||||
|
// conditions:
|
||||
|
// The above copyright notice and this permission notice shall be
|
||||
|
// included in all copies or substantial portions of the Software.
|
||||
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
|
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
|
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
|
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
|
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
|
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
|
// OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
// </copyright>
|
||||
|
using System; |
||||
|
using MathNet.Numerics.Algorithms.LinearAlgebra; |
||||
|
|
||||
|
namespace MathNet.Numerics.Algorithms |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Enumerates the linear algebra providers.
|
||||
|
/// </summary>
|
||||
|
public enum LinearAlgebraProvider |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Managed provider
|
||||
|
/// </summary>
|
||||
|
Managed, |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// User defined provider
|
||||
|
/// </summary>
|
||||
|
UserDefined |
||||
|
|
||||
|
/* /// <summary>
|
||||
|
/// Intel's Math Kernel Library (MKL) Provider
|
||||
|
/// </summary>
|
||||
|
Mkl, |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Automatically Tuned Linear Algebra Software (ATLAS) Provider
|
||||
|
/// </summary>
|
||||
|
Atlas, |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// AMD Core Math Library (ACML) Provider
|
||||
|
/// </summary>
|
||||
|
Acml, |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// NVIDIA Compute Unified Device Architecture (CUDA) Provider
|
||||
|
/// </summary>
|
||||
|
Cuda, |
||||
|
*/ |
||||
|
} |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Lets users choose which algorithm providers to use.
|
||||
|
/// </summary>
|
||||
|
public static class AlgorithmFactory |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// The current linear algebra provider - starts as the managed provider.
|
||||
|
/// </summary>
|
||||
|
private static Type _linearAlgebraProvider = typeof(ManagedLinearAlgebra); |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// The type of the user defined linear algebra provider.
|
||||
|
/// </summary>
|
||||
|
private static Type _userLinearAlgebraProvider; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Gets the linear algebra provider.
|
||||
|
/// </summary>
|
||||
|
/// <value>The linear algebra provider.</value>
|
||||
|
public static ILinearAlgebra LinearAlgebra |
||||
|
{ |
||||
|
get { return (ILinearAlgebra) Activator.CreateInstance(_linearAlgebraProvider); } |
||||
|
} |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Sets the linear algebra provider to use.
|
||||
|
/// </summary>
|
||||
|
/// <param name="provider">
|
||||
|
/// The linear algebra provider to use.
|
||||
|
/// </param>
|
||||
|
public static void SetLinearAlgebraProvider(LinearAlgebraProvider provider) |
||||
|
{ |
||||
|
switch (provider) |
||||
|
{ |
||||
|
case LinearAlgebraProvider.Managed: |
||||
|
_linearAlgebraProvider = typeof(ManagedLinearAlgebra); |
||||
|
break; |
||||
|
case LinearAlgebraProvider.UserDefined: |
||||
|
if (_userLinearAlgebraProvider == null) |
||||
|
{ |
||||
|
throw new ArgumentException(); |
||||
|
} |
||||
|
|
||||
|
_linearAlgebraProvider = _userLinearAlgebraProvider; |
||||
|
break; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Registers the user defined linear algebra provider.
|
||||
|
/// </summary>
|
||||
|
/// <param name="provider">
|
||||
|
/// The user defined provider.
|
||||
|
/// </param>
|
||||
|
public static void RegisterLinearAlgebraProvider(Type provider) |
||||
|
{ |
||||
|
if (provider == null) |
||||
|
{ |
||||
|
throw new ArgumentNullException("provider"); |
||||
|
} |
||||
|
|
||||
|
_userLinearAlgebraProvider = provider; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,32 @@ |
|||||
|
// <copyright file="ILinearAlgebra.cs" company="Math.NET">
|
||||
|
// Math.NET Numerics, part of the Math.NET Project
|
||||
|
// http://mathnet.opensourcedotnet.info
|
||||
|
// Copyright (c) 2009 Math.NET
|
||||
|
// Permission is hereby granted, free of charge, to any person
|
||||
|
// obtaining a copy of this software and associated documentation
|
||||
|
// files (the "Software"), to deal in the Software without
|
||||
|
// restriction, including without limitation the rights to use,
|
||||
|
// copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
|
// copies of the Software, and to permit persons to whom the
|
||||
|
// Software is furnished to do so, subject to the following
|
||||
|
// conditions:
|
||||
|
// The above copyright notice and this permission notice shall be
|
||||
|
// included in all copies or substantial portions of the Software.
|
||||
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
|
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
|
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
|
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
|
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
|
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
|
// OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
// </copyright>
|
||||
|
namespace MathNet.Numerics.Algorithms.LinearAlgebra |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Interface to linear algebra algorithms that work off 1-D arrays.
|
||||
|
/// </summary>
|
||||
|
public interface ILinearAlgebra |
||||
|
{ |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,33 @@ |
|||||
|
// <copyright file="ManagedLinearAlgebra.cs" company="Math.NET">
|
||||
|
// Math.NET Numerics, part of the Math.NET Project
|
||||
|
// http://mathnet.opensourcedotnet.info
|
||||
|
// Copyright (c) 2009 Math.NET
|
||||
|
// Permission is hereby granted, free of charge, to any person
|
||||
|
// obtaining a copy of this software and associated documentation
|
||||
|
// files (the "Software"), to deal in the Software without
|
||||
|
// restriction, including without limitation the rights to use,
|
||||
|
// copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
|
// copies of the Software, and to permit persons to whom the
|
||||
|
// Software is furnished to do so, subject to the following
|
||||
|
// conditions:
|
||||
|
// The above copyright notice and this permission notice shall be
|
||||
|
// included in all copies or substantial portions of the Software.
|
||||
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
|
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
|
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
|
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
|
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
|
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
|
// OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
// </copyright>
|
||||
|
|
||||
|
namespace MathNet.Numerics.Algorithms.LinearAlgebra |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// The managed linear algebra provider.
|
||||
|
/// </summary>
|
||||
|
internal class ManagedLinearAlgebra : ILinearAlgebra |
||||
|
{ |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue