Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 961d547

Browse files
committed
remove tabs
1 parent 26f26cb commit 961d547

20 files changed

+811
-810
lines changed

src/ServiceStack.Text/CsvStreamExtensions.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@
1515

1616
namespace ServiceStack.Text
1717
{
18-
public static class CsvStreamExtensions
19-
{
20-
public static void WriteCsv<T>(this Stream outputStream, IEnumerable<T> records)
21-
{
22-
using (var textWriter = new StreamWriter(outputStream))
23-
{
24-
textWriter.WriteCsv(records);
25-
}
26-
}
18+
public static class CsvStreamExtensions
19+
{
20+
public static void WriteCsv<T>(this Stream outputStream, IEnumerable<T> records)
21+
{
22+
using (var textWriter = new StreamWriter(outputStream))
23+
{
24+
textWriter.WriteCsv(records);
25+
}
26+
}
2727

28-
public static void WriteCsv<T>(this TextWriter writer, IEnumerable<T> records)
29-
{
30-
CsvWriter<T>.Write(writer, records);
31-
}
28+
public static void WriteCsv<T>(this TextWriter writer, IEnumerable<T> records)
29+
{
30+
CsvWriter<T>.Write(writer, records);
31+
}
3232

33-
}
33+
}
3434
}

src/ServiceStack.Text/HttpUtils.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ public static string SetQueryParam(this string url, string key, string val)
3939
var qsPos = url.IndexOf('?');
4040
if (qsPos != -1)
4141
{
42-
var existingKeyPos = qsPos + 1 == url.IndexOf(key, qsPos, PclExport.Instance.InvariantComparison)
43-
? qsPos
42+
var existingKeyPos = qsPos + 1 == url.IndexOf(key, qsPos, PclExport.Instance.InvariantComparison)
43+
? qsPos
4444
: url.IndexOf("&" + key, qsPos, PclExport.Instance.InvariantComparison);
4545

4646
if (existingKeyPos != -1)
4747
{
4848
var endPos = url.IndexOf('&', existingKeyPos + 1);
49-
if (endPos == -1)
49+
if (endPos == -1)
5050
endPos = url.Length;
5151

5252
var newUrl = url.Substring(0, existingKeyPos + key.Length + 1)
@@ -85,7 +85,7 @@ public static string SetHashParam(this string url, string key, string val)
8585
if (existingKeyPos != -1)
8686
{
8787
var endPos = url.IndexOf('/', existingKeyPos + 1);
88-
if (endPos == -1)
88+
if (endPos == -1)
8989
endPos = url.Length;
9090

9191
var newUrl = url.Substring(0, existingKeyPos + key.Length + 1)
@@ -654,7 +654,7 @@ public static HttpWebResponse GetErrorResponse(this string url)
654654

655655
public static Task<Stream> GetRequestStreamAsync(this WebRequest request)
656656
{
657-
return GetRequestStreamAsync((HttpWebRequest) request);
657+
return GetRequestStreamAsync((HttpWebRequest)request);
658658
}
659659

660660
public static Task<Stream> GetRequestStreamAsync(this HttpWebRequest request)
@@ -752,7 +752,7 @@ public static void UploadFile(this WebRequest webRequest, Stream fileStream, str
752752

753753
var contentLength = fileStream.Length + headerbytes.Length + boundarybytes.Length;
754754
PclExport.Instance.InitHttpWebRequest(httpReq,
755-
contentLength:contentLength, allowAutoRedirect: false, keepAlive: false);
755+
contentLength: contentLength, allowAutoRedirect: false, keepAlive: false);
756756

757757
if (ResultsFilter != null)
758758
{
@@ -816,7 +816,7 @@ public class HttpResultsFilter : IHttpResultsFilter
816816
public Func<HttpWebRequest, byte[], byte[]> BytesResultFn { get; set; }
817817
public Action<HttpWebRequest, Stream, string> UploadFileFn { get; set; }
818818

819-
public HttpResultsFilter(string stringResult=null, byte[] bytesResult=null)
819+
public HttpResultsFilter(string stringResult = null, byte[] bytesResult = null)
820820
{
821821
StringResult = stringResult;
822822
BytesResult = bytesResult;
@@ -1112,7 +1112,7 @@ public static class HttpMethods
11121112
"ACL", // RFC 3744
11131113
"PATCH", // https://datatracker.ietf.org/doc/draft-dusseault-http-patch/
11141114
"SEARCH", // https://datatracker.ietf.org/doc/draft-reschke-webdav-search/
1115-
"BCOPY", "BDELETE", "BMOVE", "BPROPFIND", "BPROPPATCH", "NOTIFY",
1115+
"BCOPY", "BDELETE", "BMOVE", "BPROPFIND", "BPROPPATCH", "NOTIFY",
11161116
"POLL", "SUBSCRIBE", "UNSUBSCRIBE" //MS Exchange WebDav: http://msdn.microsoft.com/en-us/library/aa142917.aspx
11171117
};
11181118

src/ServiceStack.Text/ITracer.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
namespace ServiceStack.Text
44
{
5-
public interface ITracer
6-
{
5+
public interface ITracer
6+
{
77
void WriteDebug(string error);
88
void WriteDebug(string format, params object[] args);
99
void WriteWarning(string warning);
1010
void WriteWarning(string format, params object[] args);
11-
12-
void WriteError(Exception ex);
13-
void WriteError(string error);
14-
void WriteError(string format, params object[] args);
15-
}
11+
12+
void WriteError(Exception ex);
13+
void WriteError(string error);
14+
void WriteError(string format, params object[] args);
15+
}
1616
}

src/ServiceStack.Text/ITypeSerializer.Generic.cs

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -15,43 +15,43 @@
1515

1616
namespace ServiceStack.Text
1717
{
18-
public interface ITypeSerializer<T>
19-
{
20-
/// <summary>
21-
/// Determines whether this serializer can create the specified type from a string.
22-
/// </summary>
23-
/// <param name="type">The type.</param>
24-
/// <returns>
25-
/// <c>true</c> if this instance [can create from string] the specified type; otherwise, <c>false</c>.
26-
/// </returns>
27-
bool CanCreateFromString(Type type);
18+
public interface ITypeSerializer<T>
19+
{
20+
/// <summary>
21+
/// Determines whether this serializer can create the specified type from a string.
22+
/// </summary>
23+
/// <param name="type">The type.</param>
24+
/// <returns>
25+
/// <c>true</c> if this instance [can create from string] the specified type; otherwise, <c>false</c>.
26+
/// </returns>
27+
bool CanCreateFromString(Type type);
2828

29-
/// <summary>
30-
/// Parses the specified value.
31-
/// </summary>
32-
/// <param name="value">The value.</param>
33-
/// <returns></returns>
34-
T DeserializeFromString(string value);
29+
/// <summary>
30+
/// Parses the specified value.
31+
/// </summary>
32+
/// <param name="value">The value.</param>
33+
/// <returns></returns>
34+
T DeserializeFromString(string value);
3535

36-
/// <summary>
37-
/// Deserializes from reader.
38-
/// </summary>
39-
/// <param name="reader">The reader.</param>
40-
/// <returns></returns>
41-
T DeserializeFromReader(TextReader reader);
36+
/// <summary>
37+
/// Deserializes from reader.
38+
/// </summary>
39+
/// <param name="reader">The reader.</param>
40+
/// <returns></returns>
41+
T DeserializeFromReader(TextReader reader);
4242

43-
/// <summary>
44-
/// Serializes to string.
45-
/// </summary>
46-
/// <param name="value">The value.</param>
47-
/// <returns></returns>
48-
string SerializeToString(T value);
43+
/// <summary>
44+
/// Serializes to string.
45+
/// </summary>
46+
/// <param name="value">The value.</param>
47+
/// <returns></returns>
48+
string SerializeToString(T value);
4949

50-
/// <summary>
51-
/// Serializes to writer.
52-
/// </summary>
53-
/// <param name="value">The value.</param>
54-
/// <param name="writer">The writer.</param>
55-
void SerializeToWriter(T value, TextWriter writer);
56-
}
50+
/// <summary>
51+
/// Serializes to writer.
52+
/// </summary>
53+
/// <param name="value">The value.</param>
54+
/// <param name="writer">The writer.</param>
55+
void SerializeToWriter(T value, TextWriter writer);
56+
}
5757
}

src/ServiceStack.Text/JsConfig.cs

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static JsConfig()
2424
}
2525

2626
// force deterministic initialization of static constructor
27-
public static void InitStatics() {}
27+
public static void InitStatics() { }
2828

2929
public static JsConfigScope BeginScope()
3030
{
@@ -35,8 +35,8 @@ public static JsConfigScope With(
3535
bool? convertObjectTypesIntoStringDictionary = null,
3636
bool? tryToParsePrimitiveTypeValues = null,
3737
bool? tryToParseNumericType = null,
38-
ParseAsType? parsePrimitiveFloatingPointTypes = null,
39-
ParseAsType? parsePrimitiveIntegerTypes = null,
38+
ParseAsType? parsePrimitiveFloatingPointTypes = null,
39+
ParseAsType? parsePrimitiveIntegerTypes = null,
4040
bool? excludeDefaultValues = null,
4141
bool? includeNullValues = null,
4242
bool? includeNullValuesInDictionaries = null,
@@ -149,35 +149,35 @@ public static bool TryToParseNumericType
149149
}
150150
}
151151

152-
private static ParseAsType? sParsePrimitiveFloatingPointTypes;
153-
public static ParseAsType ParsePrimitiveFloatingPointTypes
154-
{
155-
get
156-
{
157-
return (JsConfigScope.Current != null ? JsConfigScope.Current.ParsePrimitiveFloatingPointTypes : null)
158-
?? sParsePrimitiveFloatingPointTypes
159-
?? ParseAsType.Decimal;
160-
}
161-
set
162-
{
163-
if (sParsePrimitiveFloatingPointTypes == null) sParsePrimitiveFloatingPointTypes = value;
164-
}
165-
}
166-
167-
private static ParseAsType? sParsePrimitiveIntegerTypes;
168-
public static ParseAsType ParsePrimitiveIntegerTypes
169-
{
170-
get
171-
{
172-
return (JsConfigScope.Current != null ? JsConfigScope.Current.ParsePrimitiveIntegerTypes : null)
173-
?? sParsePrimitiveIntegerTypes
174-
?? ParseAsType.Byte | ParseAsType.SByte | ParseAsType.Int16 | ParseAsType.UInt16 | ParseAsType.Int32 | ParseAsType.UInt32 | ParseAsType.Int64 | ParseAsType.UInt64;
175-
}
176-
set
177-
{
178-
if (!sParsePrimitiveIntegerTypes.HasValue) sParsePrimitiveIntegerTypes = value;
179-
}
180-
}
152+
private static ParseAsType? sParsePrimitiveFloatingPointTypes;
153+
public static ParseAsType ParsePrimitiveFloatingPointTypes
154+
{
155+
get
156+
{
157+
return (JsConfigScope.Current != null ? JsConfigScope.Current.ParsePrimitiveFloatingPointTypes : null)
158+
?? sParsePrimitiveFloatingPointTypes
159+
?? ParseAsType.Decimal;
160+
}
161+
set
162+
{
163+
if (sParsePrimitiveFloatingPointTypes == null) sParsePrimitiveFloatingPointTypes = value;
164+
}
165+
}
166+
167+
private static ParseAsType? sParsePrimitiveIntegerTypes;
168+
public static ParseAsType ParsePrimitiveIntegerTypes
169+
{
170+
get
171+
{
172+
return (JsConfigScope.Current != null ? JsConfigScope.Current.ParsePrimitiveIntegerTypes : null)
173+
?? sParsePrimitiveIntegerTypes
174+
?? ParseAsType.Byte | ParseAsType.SByte | ParseAsType.Int16 | ParseAsType.UInt16 | ParseAsType.Int32 | ParseAsType.UInt32 | ParseAsType.Int64 | ParseAsType.UInt64;
175+
}
176+
set
177+
{
178+
if (!sParsePrimitiveIntegerTypes.HasValue) sParsePrimitiveIntegerTypes = value;
179+
}
180+
}
181181

182182
private static bool? sExcludeDefaultValues;
183183
public static bool ExcludeDefaultValues

0 commit comments

Comments
 (0)