forked from ServiceStack/ServiceStack.Text
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJsDelegates.cs
More file actions
38 lines (27 loc) · 1.29 KB
/
Copy pathJsDelegates.cs
File metadata and controls
38 lines (27 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// https://github.com/ServiceStack/ServiceStack.Text
// ServiceStack.Text: .NET C# POCO JSON, JSV and CSV Text Serializers.
//
// Authors:
// Demis Bellot (demis.bellot@gmail.com)
//
// Copyright 2012 Service Stack LLC. All Rights Reserved.
//
// Licensed under the same terms of ServiceStack.
//
using System;
using System.Collections.Generic;
using System.IO;
namespace ServiceStack.Text.Common
{
internal delegate void WriteListDelegate(TextWriter writer, object oList, WriteObjectDelegate toStringFn);
internal delegate void WriteGenericListDelegate<T>(TextWriter writer, IList<T> list, WriteObjectDelegate toStringFn);
internal delegate void WriteDelegate(TextWriter writer, object value);
internal delegate ParseStringDelegate ParseFactoryDelegate();
public delegate void WriteObjectDelegate(TextWriter writer, object obj);
public delegate void SetPropertyDelegate(object instance, object propertyValue);
public delegate object ParseStringDelegate(string stringValue);
public delegate object ConvertObjectDelegate(object fromObject);
public delegate object ConvertInstanceDelegate(object obj, Type type);
public delegate void DeserializationErrorDelegate(object instance, Type propertyType, string propertyName, string propertyValueStr, Exception ex);
}