PageRenderTime 14ms queryFilters 0ms Sphinxql 195ms app.CodeModel.GetByIds 10ms findMatchingLines 28ms GetByIds 38ms meta 0ms repositoryFilters 11ms languageFilters 2ms sourceFilters 5ms

1,015,401 results for 'using System.Linq;' (14 ms)

Source

Language

Repository

JSON.aspx https://github.com/pvencill/amptools.git | ASP.NET | 500 lines
94			 <div class="blog-content">
95				<p>Even though there are quite a few opensource .Net libraries REST API out there, and a really impressive one for Flickr, they tend to never evolve or fork to use the newer framework technologies.&#160; I think its great that they support 1.0, 2.0, and mono, but why not fork and support WCF?&#160; I think part of the problem that .Net 3.5 use is not wide spread as it should be is not only information overload and bad naming for extension libraries, but also lack of opensource support to provide libraries and basis for current technology.&#160; </p>  <p>Flickr tends to be a little more tricky to use when calling it than some other REST APIs. WCF is a cool technology, but needs to be massaged when using it with Flickr due to a couple of gotchas and not so obvious things about WCF. In order to use Flickr, you need to register for an api_key and a shared secret code which is used to create an MD5 hash. You also need to create that MD5 each time you call a method, using the url parameters in a certain way. </p>  <p>There are also a few not so obvious factors about using the JSON part of Flickr. All of the .Net libraries I've seen so far, use XML. While C# is king of parsing&#160; XML, JSON tends to be more compact, which means less expense over the wire, though it might mean more time parsing once on the developers end point. So there are tradeoffs to using it. </p>  <p>When I created the classes needed to use WCF to call Flickr, I have the actual &quot;DataContract&quot; object (DTO, Data Transfer Object), A Hash (Dictionary&lt;string, object&gt;) for adding the parameters to create the MD5 signature, A base class for creating the WCF proxy, a custom &quot;WebContentTypeMapper&quot;, The &quot;ServiceContract&quot; interface, the actual &quot;Client class&quot;, and a mixins class for creating the MD5. </p>  <p>Here are some of the gotchas that I ran into while getting WCF to work with Flickr. </p>  <p></p>  <ol>   <li>Flickr makes you create a md5 hash to send with every call for ALL parameters in alphabetical order using your &quot;Shared Secret&quot; Code as part of the md5.&#160;&#160; </li>    <li>Flickr's Json response &quot;Content-Type&quot; header is sent not as &quot;application/json&quot; but as &quot;text/plain&quot; which equates to &quot;Raw&quot; in WCF lingo.&#160; </li>    <li>The response object is wrapped and not obvious when it comes to json how the DataContract object should be formed.&#160; </li>    <li>Flickr will wrap the json response in a javascript function unless you pass in the parameter &quot;nojsoncallback=1&quot; </li> </ol>  <p>To get around number one, I created an extension method that takes a Hash (Dictionary&lt;string, object&gt;) and adds method that converts the parameters into a MD5 string. </p>  <pre class="code csharp">namespace Amplify.Linq
96{
117	using System.Collections.Generic;
118	using System.Linq;
119	using System.Security.Cryptography;
230	using System.Collections.Generic;
231	using System.Linq;
232	using System.Text;
263	using System.Collections.Generic;
264	using System.Linq;
265	using System.Text;
291	using System.Collections.Generic;
292	using System.Linq;
293	using System.Text;
REST.aspx https://github.com/pvencill/amptools.git | ASP.NET | 500 lines
94			 <div class="blog-content">
95				<p>Even though there are quite a few opensource .Net libraries REST API out there, and a really impressive one for Flickr, they tend to never evolve or fork to use the newer framework technologies.&#160; I think its great that they support 1.0, 2.0, and mono, but why not fork and support WCF?&#160; I think part of the problem that .Net 3.5 use is not wide spread as it should be is not only information overload and bad naming for extension libraries, but also lack of opensource support to provide libraries and basis for current technology.&#160; </p>  <p>Flickr tends to be a little more tricky to use when calling it than some other REST APIs. WCF is a cool technology, but needs to be massaged when using it with Flickr due to a couple of gotchas and not so obvious things about WCF. In order to use Flickr, you need to register for an api_key and a shared secret code which is used to create an MD5 hash. You also need to create that MD5 each time you call a method, using the url parameters in a certain way. </p>  <p>There are also a few not so obvious factors about using the JSON part of Flickr. All of the .Net libraries I've seen so far, use XML. While C# is king of parsing&#160; XML, JSON tends to be more compact, which means less expense over the wire, though it might mean more time parsing once on the developers end point. So there are tradeoffs to using it. </p>  <p>When I created the classes needed to use WCF to call Flickr, I have the actual &quot;DataContract&quot; object (DTO, Data Transfer Object), A Hash (Dictionary&lt;string, object&gt;) for adding the parameters to create the MD5 signature, A base class for creating the WCF proxy, a custom &quot;WebContentTypeMapper&quot;, The &quot;ServiceContract&quot; interface, the actual &quot;Client class&quot;, and a mixins class for creating the MD5. </p>  <p>Here are some of the gotchas that I ran into while getting WCF to work with Flickr. </p>  <p></p>  <ol>   <li>Flickr makes you create a md5 hash to send with every call for ALL parameters in alphabetical order using your &quot;Shared Secret&quot; Code as part of the md5.&#160;&#160; </li>    <li>Flickr's Json response &quot;Content-Type&quot; header is sent not as &quot;application/json&quot; but as &quot;text/plain&quot; which equates to &quot;Raw&quot; in WCF lingo.&#160; </li>    <li>The response object is wrapped and not obvious when it comes to json how the DataContract object should be formed.&#160; </li>    <li>Flickr will wrap the json response in a javascript function unless you pass in the parameter &quot;nojsoncallback=1&quot; </li> </ol>  <p>To get around number one, I created an extension method that takes a Hash (Dictionary&lt;string, object&gt;) and adds method that converts the parameters into a MD5 string. </p>  <pre class="code csharp">namespace Amplify.Linq
96{
117	using System.Collections.Generic;
118	using System.Linq;
119	using System.Security.Cryptography;
230	using System.Collections.Generic;
231	using System.Linq;
232	using System.Text;
263	using System.Collections.Generic;
264	using System.Linq;
265	using System.Text;
291	using System.Collections.Generic;
292	using System.Linq;
293	using System.Text;
2008_07_13_index.aspx https://github.com/pvencill/amptools.git | ASP.NET | 488 lines
51			 <div class="blog-content">
52				<p>Even though there are quite a few opensource .Net libraries REST API out there, and a really impressive one for Flickr, they tend to never evolve or fork to use the newer framework technologies.&#160; I think its great that they support 1.0, 2.0, and mono, but why not fork and support WCF?&#160; I think part of the problem that .Net 3.5 use is not wide spread as it should be is not only information overload and bad naming for extension libraries, but also lack of opensource support to provide libraries and basis for current technology.&#160; </p>  <p>Flickr tends to be a little more tricky to use when calling it than some other REST APIs. WCF is a cool technology, but needs to be massaged when using it with Flickr due to a couple of gotchas and not so obvious things about WCF. In order to use Flickr, you need to register for an api_key and a shared secret code which is used to create an MD5 hash. You also need to create that MD5 each time you call a method, using the url parameters in a certain way. </p>  <p>There are also a few not so obvious factors about using the JSON part of Flickr. All of the .Net libraries I've seen so far, use XML. While C# is king of parsing&#160; XML, JSON tends to be more compact, which means less expense over the wire, though it might mean more time parsing once on the developers end point. So there are tradeoffs to using it. </p>  <p>When I created the classes needed to use WCF to call Flickr, I have the actual &quot;DataContract&quot; object (DTO, Data Transfer Object), A Hash (Dictionary&lt;string, object&gt;) for adding the parameters to create the MD5 signature, A base class for creating the WCF proxy, a custom &quot;WebContentTypeMapper&quot;, The &quot;ServiceContract&quot; interface, the actual &quot;Client class&quot;, and a mixins class for creating the MD5. </p>  <p>Here are some of the gotchas that I ran into while getting WCF to work with Flickr. </p>  <p></p>  <ol>   <li>Flickr makes you create a md5 hash to send with every call for ALL parameters in alphabetical order using your &quot;Shared Secret&quot; Code as part of the md5.&#160;&#160; </li>    <li>Flickr's Json response &quot;Content-Type&quot; header is sent not as &quot;application/json&quot; but as &quot;text/plain&quot; which equates to &quot;Raw&quot; in WCF lingo.&#160; </li>    <li>The response object is wrapped and not obvious when it comes to json how the DataContract object should be formed.&#160; </li>    <li>Flickr will wrap the json response in a javascript function unless you pass in the parameter &quot;nojsoncallback=1&quot; </li> </ol>  <p>To get around number one, I created an extension method that takes a Hash (Dictionary&lt;string, object&gt;) and adds method that converts the parameters into a MD5 string. </p>  <pre class="code csharp">namespace Amplify.Linq
53{
55	using System.Collections.Generic;
56	using System.Linq;
57	using System.Text;
74	using System.Collections.Generic;
75	using System.Linq;
76	using System.Security.Cryptography;
220	using System.Collections.Generic;
221	using System.Linq;
222	using System.Text;
248	using System.Collections.Generic;
249	using System.Linq;
250	using System.Text;
using-wcf-to-access-flickr-json-api.aspx https://github.com/pvencill/amptools.git | ASP.NET | 429 lines
51			 <div class="blog-content">
52				<p>Even though there are quite a few opensource .Net libraries REST API out there, and a really impressive one for Flickr, they tend to never evolve or fork to use the newer framework technologies.&#160; I think its great that they support 1.0, 2.0, and mono, but why not fork and support WCF?&#160; I think part of the problem that .Net 3.5 use is not wide spread as it should be is not only information overload and bad naming for extension libraries, but also lack of opensource support to provide libraries and basis for current technology.&#160; </p>  <p>Flickr tends to be a little more tricky to use when calling it than some other REST APIs. WCF is a cool technology, but needs to be massaged when using it with Flickr due to a couple of gotchas and not so obvious things about WCF. In order to use Flickr, you need to register for an api_key and a shared secret code which is used to create an MD5 hash. You also need to create that MD5 each time you call a method, using the url parameters in a certain way. </p>  <p>There are also a few not so obvious factors about using the JSON part of Flickr. All of the .Net libraries I've seen so far, use XML. While C# is king of parsing&#160; XML, JSON tends to be more compact, which means less expense over the wire, though it might mean more time parsing once on the developers end point. So there are tradeoffs to using it. </p>  <p>When I created the classes needed to use WCF to call Flickr, I have the actual &quot;DataContract&quot; object (DTO, Data Transfer Object), A Hash (Dictionary&lt;string, object&gt;) for adding the parameters to create the MD5 signature, A base class for creating the WCF proxy, a custom &quot;WebContentTypeMapper&quot;, The &quot;ServiceContract&quot; interface, the actual &quot;Client class&quot;, and a mixins class for creating the MD5. </p>  <p>Here are some of the gotchas that I ran into while getting WCF to work with Flickr. </p>  <p></p>  <ol>   <li>Flickr makes you create a md5 hash to send with every call for ALL parameters in alphabetical order using your &quot;Shared Secret&quot; Code as part of the md5.&#160;&#160; </li>    <li>Flickr's Json response &quot;Content-Type&quot; header is sent not as &quot;application/json&quot; but as &quot;text/plain&quot; which equates to &quot;Raw&quot; in WCF lingo.&#160; </li>    <li>The response object is wrapped and not obvious when it comes to json how the DataContract object should be formed.&#160; </li>    <li>Flickr will wrap the json response in a javascript function unless you pass in the parameter &quot;nojsoncallback=1&quot; </li> </ol>  <p>To get around number one, I created an extension method that takes a Hash (Dictionary&lt;string, object&gt;) and adds method that converts the parameters into a MD5 string. </p>  <pre class="code csharp">namespace Amplify.Linq
53{
74	using System.Collections.Generic;
75	using System.Linq;
76	using System.Security.Cryptography;
187	using System.Collections.Generic;
188	using System.Linq;
189	using System.Text;
220	using System.Collections.Generic;
221	using System.Linq;
222	using System.Text;
248	using System.Collections.Generic;
249	using System.Linq;
250	using System.Text;
EntityFrameworkDbContextRepositoryOrmFrameworkBase.cs git://github.com/kahanu/CondorXE.git | C# | 720 lines
214            _output.autoTabLn("using System;");
215            _output.autoTabLn("using System.Linq;");
216            _output.autoTabLn("using " + _script.Settings.BusinessObjects.BusinessObjectsNamespace + ";");
338            _output.autoTabLn("using System.Configuration;");
339            _output.autoTabLn("using System.Linq;");
340            _output.autoTabLn("");
389            _output.autoTabLn("using System.Data.Entity;");
390            _output.autoTabLn("using System.Linq;");
391            _output.autoTabLn("using System.Linq.Expressions;");
588            _output.autoTabLn("using System;");
589            _output.autoTabLn("using System.Linq;");
590            _output.autoTabLn("");
663            _output.autoTabLn("using System;");
664            _output.autoTabLn("using System.Linq;");
665            _output.autoTabLn("");
IRepositoryExtensions.cs https://github.com/edqwerty1/Bowling.git | C# | 290 lines
6    using System.Diagnostics.Contracts;
7    using System.Linq;
8    using System.Linq.Expressions;
83        /// using System.Collections.Generic;
84        /// using System.Linq;
85        /// using System.Threading;
192        /// using System.Collections.Generic;
193        /// using System.Linq;
194        /// using System.Threading;
229        /// using System.Collections.Generic;
230        /// using System.Linq;
231        /// using System.Threading;
266        /// using System.Collections.Generic;
267        /// using System.Linq;
268        /// using System.Threading;
BindingAsyncTests.cs https://github.com/EkardNT/Roslyn.git | C# | 3,780 lines
3using System.Collections.Generic;
4using System.Linq;
5using Microsoft.CodeAnalysis.CSharp.Symbols;
1296            var source = @"
1297using System.Linq;
1298using System.Collections.Generic;
1450            var source = @"
1451using System.Linq;
1452using System.Collections.Generic;
1493            var source = @"
1494using System.Linq;
1495using System.Collections.Generic;
1530            var source = @"
1531using System.Linq;
1532using System.Collections.Generic;
ConditionalOperatorTests.cs https://github.com/EkardNT/Roslyn.git | C# | 1,257 lines
633using System.Linq.Expressions;
634using System.Linq;
635using System.Collections;
760using System.Linq.Expressions;
761using System.Linq;
762using System.Collections;
826using System.Linq.Expressions;
827using System.Linq;
828using System.Collections;
902using System.Linq.Expressions;
903using System.Linq;
904using System.Collections;
976using System.Linq.Expressions;
977using System.Linq;
978using System.Collections;
ParserErrorMessageTests.cs https://github.com/EkardNT/Roslyn.git | C# | 4,833 lines
2
3using System.Linq;
4using Microsoft.CodeAnalysis.CSharp.Test.Utilities;
843using System;
844using System.Linq;
845public class C
915using System;
916using System.Linq;
917public class C
3947using System.Collections.Generic;
3948using System.Linq;
3949 
4077using System;
4078using System.Linq;
4079
FindAllDeclarationsTests.TestSolutionsAndProject.cs https://github.com/EkardNT/Roslyn.git | C# | 272 lines
4using System.Collections.Generic;
5using System.Linq;
6using Microsoft.CodeAnalysis.Text;
172using System.Collections.Generic;
173using System.Linq;
174using System.Text;
223using System.Collections.Generic;
224using System.Linq;
225using System.Text;
243using System.Collections.Generic;
244using System.Linq;
245using System.Text;
259using System.Collections.Generic;
260using System.Linq;
261using System.Text;
CodeCompletionCSharp3Tests.cs https://github.com/EdwardWu99/ILSpy.git | C# | 474 lines
311@"
312using System.Linq;
313using System.Linq.Expressions;
376using System.Collections.Generic;
377using System.Linq;
378class A
398using System.Collections.Generic;
399using System.Linq;
400class A
418using System.Collections.Generic;
419using System.Linq;
420class A
441using System.Collections.Generic;
442using System.Linq;
443class A
RavenDB-13695.cs git://github.com/ravendb/ravendb.git | C# | 460 lines
1using System.Collections.Generic;
2using System.Linq;
3using FastTests;
55using System.Collections.Generic;
56using System.Linq;
57
291using System.Collections.Generic;
292using System.Linq;
293
357using System.Collections.Generic;
358using System.Linq;
359
423using System.Collections.Generic;
424using System.Linq;
425
SemanticModelAPITests.cs https://github.com/EkardNT/Roslyn.git | C# | 3,182 lines
5using System.Collections.Immutable;
6using System.Linq;
7using Microsoft.CodeAnalysis.CSharp.Symbols;
60        {
61            var text = @"using System.Linq; public class C { public void M() { var q = from c in string.Empty select c; } }";
62            var tree = Parse(text);
404using System.Collections.Generic;
405using System.Linq;
406
432using System.Collections.Generic;
433using System.Linq;
434
2286            var compilation = CreateCompilationWithMscorlibAndSystemCore(@"
2287using System.Linq;
2288
LocationsTests.cs https://github.com/EkardNT/Roslyn.git | C# | 426 lines
5using System.IO;
6using System.Linq;
7using Microsoft.CodeAnalysis.Text;
225using System.Collections.Generic;
226using System.Linq;
227
263using System.Collections.Generic;
264using System.Linq;
265
288using System.Collections.Generic;
289using System.Linq;
290
313using System.Collections.Generic;
314using System.Linq;
315
RoundTrippingTests.cs https://github.com/EkardNT/Roslyn.git | C# | 1,685 lines
878using System.Collections.Generic;
879using System.Linq;
880using System.Text;
1551        {
1552            var text = @"using System.Linq;
1553class A
1613using System.Collections.Generic;
1614using System.Linq;
1615
1639using System.Collections.Generic;
1640using System.Linq;
1641
1665using System.Collections.Generic;
1666using System.Linq;
1667
big.patch https://github.com/gitextensions/gitextensions.git | Patch | 441 lines
36@@ -10,7 +10,7 @@ using System;
37 using System.Linq;
38 using GitCommands;
101@@ -11,7 +11,7 @@ using System.Collections.Generic;
102 using System.Linq;
103 using GitCommands.Git;
153@@ -14,7 +14,7 @@ using System.Collections.Generic;
154 using System.Linq;
155 using System.Text;
166@@ -12,7 +12,7 @@ using System.Collections.Generic;
167 using System.Linq;
168 using System.Text;
179@@ -11,7 +11,7 @@ using System.Collections.Generic;
180 using System.Linq;
181 using System.Text;
big.patch https://gitlab.com/Rockyspade/gitextensions.git | Patch | 440 lines
36@@ -10,7 +10,7 @@ using System;
37 using System.Linq;
38 using GitCommands;
101@@ -11,7 +11,7 @@ using System.Collections.Generic;
102 using System.Linq;
103 using GitCommands.Git;
153@@ -14,7 +14,7 @@ using System.Collections.Generic;
154 using System.Linq;
155 using System.Text;
166@@ -12,7 +12,7 @@ using System.Collections.Generic;
167 using System.Linq;
168 using System.Text;
179@@ -11,7 +11,7 @@ using System.Collections.Generic;
180 using System.Linq;
181 using System.Text;
big.patch git://github.com/spdr870/gitextensions.git | Patch | 440 lines
36@@ -10,7 +10,7 @@ using System;
37 using System.Linq;
38 using GitCommands;
101@@ -11,7 +11,7 @@ using System.Collections.Generic;
102 using System.Linq;
103 using GitCommands.Git;
153@@ -14,7 +14,7 @@ using System.Collections.Generic;
154 using System.Linq;
155 using System.Text;
166@@ -12,7 +12,7 @@ using System.Collections.Generic;
167 using System.Linq;
168 using System.Text;
179@@ -11,7 +11,7 @@ using System.Collections.Generic;
180 using System.Linq;
181 using System.Text;
ServiceClassesAndCommonBaseClassForDbContextServiceLayerObjects.cs git://github.com/kahanu/CondorXE.git | C# | 357 lines
1using System;
2using System.Linq;
3using Condor.Core;
72            _output.autoTabLn("using System.Collections.Generic;");
73            _output.autoTabLn("using System.Linq;");
74            _output.autoTabLn("using System.Linq.Expressions;");
145            _output.autoTabLn("using System.Collections.Generic;");
146            _output.autoTabLn("using System.Linq;");
147            _output.autoTabLn("using " + _script.Settings.DataOptions.DataObjectsNamespace + ".Generated;");
230            _output.autoTabLn("using System.Collections.Generic;");
231            _output.autoTabLn("using System.Linq;");
232            _output.autoTabLn("using " + _script.Settings.BusinessObjects.BusinessObjectsNamespace + ";");
311            _output.autoTabLn("using System;");
312            _output.autoTabLn("using System.Linq;");
313            _output.autoTabLn("using " + _script.Settings.BusinessObjects.BusinessObjectsNamespace + ";");
big.patch https://github.com/PKRoma/gitextensions.git | Patch | 440 lines
36@@ -10,7 +10,7 @@ using System;
37 using System.Linq;
38 using GitCommands;
101@@ -11,7 +11,7 @@ using System.Collections.Generic;
102 using System.Linq;
103 using GitCommands.Git;
153@@ -14,7 +14,7 @@ using System.Collections.Generic;
154 using System.Linq;
155 using System.Text;
166@@ -12,7 +12,7 @@ using System.Collections.Generic;
167 using System.Linq;
168 using System.Text;
179@@ -11,7 +11,7 @@ using System.Collections.Generic;
180 using System.Linq;
181 using System.Text;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21