//
namespace System {
-
+#pragma warning disable 436
[AttributeUsage (AttributeTargets.All, AllowMultiple=true)]
internal class MonoTODOAttribute : Attribute {
{
}
}
+#pragma warning restore 436
}
// Decoder that handles a rolling Shift-JIS state.
sealed class CP932Decoder : DbcsEncoding.DbcsDecoder
{
- private JISConvert convert;
+ private new JISConvert convert;
private int last_byte_count;
private int last_byte_chars;
{
using System;
-using System.Collections;
+using System.Collections.Generic;
// This class provides an internal list of handlers, for runtime
// engines that do not implement the altered "GetFile" semantics.
"I18N.West.ENCibm865"
};
- static Hashtable aliases;
+ static Dictionary<string, string> aliases;
public static string GetAlias (string name)
{
if (aliases == null)
BuildHash ();
- return aliases [name] as string;
+ string v;
+ aliases.TryGetValue (name, out v);
+ return v;
}
static void BuildHash ()
{
- aliases = new Hashtable (new CaseInsensitiveHashCodeProvider (),
- new CaseInsensitiveComparer ());
+ aliases = new Dictionary<string, string> (StringComparer.OrdinalIgnoreCase);
aliases.Add ("arabic", "iso_8859_6");
aliases.Add ("csISOLatinArabic", "iso_8859_6");
}
[Flags][Map]
+ [CLSCompliant (false)]
public enum EpollEvents : uint {
EPOLLIN = 0x001,
EPOLLPRI = 0x002,
}
[StructLayout (LayoutKind.Explicit, Size=12, Pack=1)]
+ [CLSCompliant (false)]
public struct EpollEvent {
[FieldOffset (0)]
public EpollEvents events;
}
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static unsafe Vector4ui ArithmeticRightShift (this Vector4ui v1, int amount)
{
Vector4ui res = new Vector4ui ();
}
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static unsafe Vector8us ArithmeticRightShift (this Vector8us va, int amount)
{
Vector8us res = new Vector8us ();
}
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static unsafe int ExtractByteMask (this Vector16sb va) {
int res = 0;
sbyte *a = (sbyte*)&va;
}
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static unsafe Vector8us AddWithSaturation (this Vector8us va, Vector8us vb) {
Vector8us res = new Vector8us ();
ushort *a = &va.v0;
}
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static unsafe Vector16sb AddWithSaturation (this Vector16sb va, Vector16sb vb) {
Vector16sb res = new Vector16sb ();
sbyte *a = &va.v0;
}
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static unsafe Vector8us SubtractWithSaturation (this Vector8us va, Vector8us vb) {
Vector8us res = new Vector8us ();
ushort *a = &va.v0;
}
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static unsafe Vector16sb SubtractWithSaturation (this Vector16sb va, Vector16sb vb) {
Vector16sb res = new Vector16sb ();
sbyte *a = &va.v0;
}
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static unsafe Vector8us MultiplyStoreHigh (this Vector8us va, Vector8us vb) {
Vector8us res = new Vector8us ();
ushort *a = &va.v0;
}
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static unsafe Vector8us Average (this Vector8us va, Vector8us vb) {
Vector8us res = new Vector8us ();
ushort *a = &va.v0;
}
[Acceleration (AccelMode.SSE41)]
+ [CLSCompliant (false)]
public static Vector4ui Max (this Vector4ui v1, Vector4ui v2)
{
return new Vector4ui (System.Math.Max (v1.x, v2.x), System.Math.Max (v1.y, v2.y), System.Math.Max (v1.z, v2.z), System.Math.Max (v1.w, v2.w));
}
[Acceleration (AccelMode.SSE41)]
+ [CLSCompliant (false)]
public static unsafe Vector8us Max (this Vector8us va, Vector8us vb) {
Vector8us res = new Vector8us ();
ushort *a = &va.v0;
}
[Acceleration (AccelMode.SSE41)]
+ [CLSCompliant (false)]
public static unsafe Vector16sb Max (this Vector16sb va, Vector16sb vb) {
Vector16sb res = new Vector16sb ();
sbyte *a = &va.v0;
}
[Acceleration (AccelMode.SSE41)]
+ [CLSCompliant (false)]
public static Vector4ui Min (this Vector4ui v1, Vector4ui v2)
{
return new Vector4ui (System.Math.Min (v1.x, v2.x), System.Math.Min (v1.y, v2.y), System.Math.Min (v1.z, v2.z), System.Math.Min (v1.w, v2.w));
}
[Acceleration (AccelMode.SSE41)]
+ [CLSCompliant (false)]
public static unsafe Vector8us Min (this Vector8us va, Vector8us vb) {
Vector8us res = new Vector8us ();
ushort *a = &va.v0;
}
[Acceleration (AccelMode.SSE41)]
+ [CLSCompliant (false)]
public static unsafe Vector16sb Min (this Vector16sb va, Vector16sb vb) {
Vector16sb res = new Vector16sb ();
sbyte *a = &va.v0;
}
[Acceleration (AccelMode.SSE41)]
+ [CLSCompliant (false)]
public static Vector2ul CompareEqual (this Vector2ul v1, Vector2ul v2)
{
return new Vector2ul ((ulong)(v1.x == v2.x ? -1 : 0), (ulong)(v1.y == v2.y ? -1 : 0));
}
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static Vector4ui CompareEqual (this Vector4ui v1, Vector4ui v2)
{
return new Vector4ui ((uint)(v1.x == v2.x ? -1 : 0), (uint)(v1.y == v2.y ? -1 : 0), (uint)(v1.z == v2.z ? -1 : 0), (uint)(v1.w == v2.w ? -1 : 0));
}
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static unsafe Vector8us CompareEqual (this Vector8us va, Vector8us vb) {
Vector8us res = new Vector8us ();
ushort *a = &va.v0;
}
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static unsafe Vector16sb CompareEqual (this Vector16sb va, Vector16sb vb) {
Vector16sb res = new Vector16sb ();
sbyte *a = &va.v0;
}
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static unsafe Vector16sb CompareGreaterThan (this Vector16sb va, Vector16sb vb) {
Vector16sb res = new Vector16sb ();
sbyte *a = &va.v0;
}
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static Vector2ul UnpackLow (this Vector2ul v1, Vector2ul v2)
{
return new Vector2ul (v1.x, v2.x);
}
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static Vector4ui UnpackLow (this Vector4ui v1, Vector4ui v2)
{
return new Vector4ui (v1.x, v2.x, v1.y, v2.y);
}
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static unsafe Vector8us UnpackLow (this Vector8us va, Vector8us vb)
{
return new Vector8us (va.v0, vb.v0, va.v1, vb.v1, va.v2, vb.v2, va.v3, vb.v3);
}
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static unsafe Vector16sb UnpackLow (this Vector16sb va, Vector16sb vb)
{
return new Vector16sb (va.v0, vb.v0, va.v1, vb.v1, va.v2, vb.v2, va.v3, vb.v3, va.v4, vb.v4, va.v5, vb.v5, va.v6, vb.v6, va.v7, vb.v7);
}
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static Vector2ul UnpackHigh (this Vector2ul v1, Vector2ul v2)
{
return new Vector2ul (v1.y, v2.y);
}
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static Vector4ui UnpackHigh (this Vector4ui v1, Vector4ui v2)
{
return new Vector4ui (v1.z, v2.z, v1.w, v2.w);
}
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static unsafe Vector8us UnpackHigh (this Vector8us va, Vector8us vb)
{
return new Vector8us (va.v4, vb.v4, va.v5, vb.v5, va.v6, vb.v6, va.v7, vb.v7);
}
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static unsafe Vector16sb UnpackHigh (this Vector16sb va, Vector16sb vb)
{
return new Vector16sb (va.v8, vb.v8, va.v9, vb.v9, va.v10, vb.v10, va.v11, vb.v11, va.v12, vb.v12, va.v13, vb.v13, va.v14, vb.v14, va.v15, vb.v15);
}
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static unsafe Vector4ui Shuffle (this Vector4ui v1, ShuffleSel sel)
{
uint *ptr = (uint*)&v1;
}
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static unsafe Vector8us ShuffleHigh (this Vector8us va, ShuffleSel sel)
{
ushort *ptr = ((ushort*)&va) + 4;
}
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static unsafe Vector8us ShuffleLow (this Vector8us va, ShuffleSel sel)
{
ushort *ptr = ((ushort*)&va);
/* This function performs a packusdw, which treats the source as a signed value */
[Acceleration (AccelMode.SSE41)]
+ [CLSCompliant (false)]
public static unsafe Vector8us SignedPackWithUnsignedSaturation (this Vector4ui va, Vector4ui vb) {
Vector8us res = new Vector8us ();
int *a = (int*)&va;
/*This function performs a packuswb, which treats the source as a signed value */
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static unsafe Vector16b SignedPackWithUnsignedSaturation (this Vector8us va, Vector8us vb) {
Vector16b res = new Vector16b ();
short *a = (short*)&va;
/* This function performs a packssdw, which treats the source as a signed value*/
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static unsafe Vector8s SignedPackWithSignedSaturation (this Vector4ui va, Vector4ui vb) {
Vector8s res = new Vector8s ();
int *a = (int*)&va;
/*This function performs a packsswb, which treats the source as a signed value */
[Acceleration (AccelMode.SSE2)]
+ [CLSCompliant (false)]
public static unsafe Vector16sb SignedPackWithSignedSaturation (this Vector8us va, Vector8us vb) {
Vector16sb res = new Vector16sb ();
short *a = (short*)&va;
[assembly: ComVisible (false)]
-[assembly: CLSCompliant (true)]
+//[assembly: CLSCompliant (true)]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile("../../../msfinal.pub")]
-#if NET_2_0
- [assembly: AssemblyFileVersion (Consts.FxFileVersion)]
- [assembly: CompilationRelaxations (CompilationRelaxations.NoStringInterning)]
- [assembly: Debuggable (DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
- [assembly: RuntimeCompatibility (WrapNonExceptionThrows = true)]
-#elif NET_1_1
- [assembly: AssemblyTrademark ("")]
- [assembly: AssemblyConfiguration ("")]
-#elif NET_1_0
- [assembly: AssemblyTrademark ("")]
- [assembly: AssemblyConfiguration ("")]
-#endif
+[assembly: AssemblyFileVersion (Consts.FxFileVersion)]
+[assembly: CompilationRelaxations (CompilationRelaxations.NoStringInterning)]
if (predicate == null)
throw new ArgumentNullException ("predicate");
- int counter = 0;
-
var candidates = new List<T> ();
foreach (var item in this)
static MmapProts ToUnixProts (MemoryMappedFileAccess access)
{
- MmapProts prots;
-
switch (access){
case MemoryMappedFileAccess.ReadWrite:
return MmapProts.PROT_WRITE | MmapProts.PROT_READ;
- break;
case MemoryMappedFileAccess.Write:
return MmapProts.PROT_WRITE;
}
}
-#endif
\ No newline at end of file
+#endif
case MemoryMappedFileAccess.ReadWrite:
case MemoryMappedFileAccess.ReadWriteExecute:
return FileAccess.ReadWrite;
- break;
case MemoryMappedFileAccess.Write:
return FileAccess.Write;
}
}
-#endif
\ No newline at end of file
+#endif
protected FileAccess RightsToFileAccess (PipeAccessRights rights)
{
- string access = null;
if ((rights & PipeAccessRights.ReadData) != 0) {
if ((rights & PipeAccessRights.WriteData) != 0)
return FileAccess.ReadWrite;
var name = Path.Combine ("/var/tmp/", pipeName);
EnsureTargetFile (name);
- string access = RightsToAccess (desiredAccessRights);
+ RightsToAccess (desiredAccessRights);
ValidateOptions (options, owner.TransmissionMode);
}
NamedPipeClientStream owner;
- bool is_async;
SafePipeHandle handle;
Action opener;
}
public bool IsAsync {
- get { return is_async; }
+ get { return false; }
}
public int NumberOfServerInstances {
string name = Path.Combine ("/var/tmp/", pipeName);
EnsureTargetFile (name);
- string access = RightsToAccess (rights);
+ RightsToAccess (rights);
ValidateOptions (options, owner.TransmissionMode);
void EmitNullableConstant (EmitContext ec, Type type, object value)
{
if (value == null) {
- var ig = ec.ig;
var local = ec.ig.DeclareLocal (type);
ec.EmitNullableInitialize (local);
} else {
}
}
- readonly int num;
SlotBucket slotBucket;
IEnumerator<KeyValuePair<long, T>?> currEnum;
internal OrderingEnumerator (int num, CancellationToken token)
{
- this.num = num;
slotBucket = new SlotBucket (num, token);
}
#region Fields
- bool cacheValid;
string referenceType;
string uri;
TransformChain tc;
#region Properties
- [MonoTODO()]
+ [MonoTODO("Always returns false")]
protected internal bool CacheValid {
- get { return cacheValid; }
+ get { return false; }
}
protected string ReferenceType {
#region Fields
- XmlElement elemProp;
string id;
string target;
get { return id; }
}
+ [MonoTODO ("Always returns null")]
public XmlElement PropertyElement {
- get { return elemProp; }
+ get { return null; }
set { LoadXml (value); }
}
return ret;
}
- static readonly MethodInfo create_factory_method = typeof (ChannelFactory).GetMethod ("CreateFactory", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
+// static readonly MethodInfo create_factory_method = typeof (ChannelFactory).GetMethod ("CreateFactory", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
void ProcessMessageDuplexSession (Message message)
{
}
return parameter.ToString ();
}
-
- throw new NotImplementedException ();
}
Type ToActualType (Type t)
return GetSerializer (ref xml_serializer, p => new DataContractSerializer (p.Type, p.Name, p.Namespace));
else
return GetSerializer (ref xml_serializer, p => new DataContractSerializer (p.Type));
- break;
+
case WebContentFormat.Json:
// FIXME: after name argument they are hack
#if !MOONLIGHT
else
#endif
return GetSerializer (ref json_serializer, p => new DataContractJsonSerializer (p.Type));
- break;
+
default:
throw new NotImplementedException ();
}
{
sealed class OutputCacheModule : IHttpModule
{
- OutputCacheProvider provider;
CacheItemRemovedCallback response_removed;
static object keysCacheLock = new object ();
Dictionary <string, string> keysCache;
Dictionary <string, string> entriesToInvalidate;
+
#if !NET_4_0
+ OutputCacheProvider provider;
+
internal OutputCacheProvider InternalProvider {
get { return provider; }
}
if (assembly == null)
throw new ArgumentNullException ("assembly");
- Type ret = HttpApplicationFactory.AppType;
if (preStartMethodsDone)
throw new InvalidOperationException ("This method cannot be called after the application's pre-start initialization stage.");
currentLocation = builder.Location;
bool inBuildControlTree = builder is RootBuilder;
string tailname = (inBuildControlTree ? "Tree" : ("_" + builder.ID));
- bool isProperty = builder.IsProperty;
+// bool isProperty = builder.IsProperty;
CodeMemberMethod method = new CodeMemberMethod ();
builder.Method = method;
builder.MethodStatements = method.Statements;
}
SubMenuStyle staticMenuStyle = owner.StaticMenuStyleInternal;
- MenuItemStyle dynamicMenuItemStyle = owner.DynamicMenuItemStyleInternal;
+// MenuItemStyle dynamicMenuItemStyle = owner.DynamicMenuItemStyleInternal;
SubMenuStyle dynamicMenuStyle = owner.DynamicMenuStyleInternal;
SubMenuStyleCollection levelSubMenuStyles = owner.LevelSubMenuStylesInternal;
if (other == null)
return false;
- int thisCount, otherCount;
IOrderedDictionary otherKeyTable = other.keyTable;
if (keyTable != null && otherKeyTable != null) {
if (keyTable.Count != otherKeyTable.Count)
base.Render (writer);
if (spots != null && spots.Count > 0) {
+#if NET_4_0
bool enabled = Enabled;
+#endif
writer.AddAttribute (HtmlTextWriterAttribute.Id, "ImageMap" + ClientID);
writer.AddAttribute (HtmlTextWriterAttribute.Name, "ImageMap" + ClientID);
writer.RenderBeginTag (HtmlTextWriterTag.Map);
protected override void RenderMenuItem (HtmlTextWriter writer, MenuItem item, bool vertical, bool notLast, bool isFirst, OwnerContext oc)
{
Menu owner = Owner;
- string clientID = oc.ClientID;
bool displayChildren = owner.DisplayChildren (item);
bool isDynamicItem = IsDynamicItem (owner, item);
int itemLevel = item.Depth + 1;
writer.AddStyleAttribute (HtmlTextWriterStyle.BorderWidth, "0");
writer.RenderBeginTag (HtmlTextWriterTag.Table);
- Unit nodeSpacing = GetNodeSpacing (node);
#if !NET_4_0
+ Unit nodeSpacing = GetNodeSpacing (node);
+
if (nodeSpacing != Unit.Empty && (node.Depth > 0 || node.Index > 0))
RenderMenuItemSpacing (writer, nodeSpacing);
#endif
throw new ArgumentNullException ("control");
Control parent = this;
- Page page = Page;
Control namingContainer = control.NamingContainer;
if (namingContainer != null)
[DesignerSerializer ("Microsoft.VisualStudio.Web.WebForms.WebFormCodeDomSerializer, " + Consts.AssemblyMicrosoft_VisualStudio_Web, "System.ComponentModel.Design.Serialization.TypeCodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public partial class Page : TemplateControl, IHttpHandler
{
- static string machineKeyConfigPath = "system.web/machineKey";
+// static string machineKeyConfigPath = "system.web/machineKey";
bool _eventValidation = true;
object [] _savedControlState;
bool _doLoadPreviousPage;
public class StaticPartialCachingControl : BasePartialCachingControl
{
BuildMethod buildMethod;
- string sqlDependency;
+// string sqlDependency;
public StaticPartialCachingControl (string ctrlID, string guid, int duration,
string varyByParams, string varyByControls, string varyByCustom,
BuildMethod buildMethod)
: this (ctrlID, guid, duration, varyByParams, varyByControls, varyByCustom, buildMethod)
{
- this.sqlDependency = sqlDependency;
+// this.sqlDependency = sqlDependency;
}
#if NET_4_0
public StaticPartialCachingControl (string ctrlID, string guid, int duration, string varyByParams,
break;
default:
#if NET_4_0
- if (name.StartsWith ("alg:"))
+ if (name.StartsWith ("alg:")) {
sa = SymmetricAlgorithm.Create (name.Substring (4));
- else
+ break;
+ }
#endif
- throw new ConfigurationErrorsException ();
- break;
+ throw new ConfigurationErrorsException ();
}
return sa;
}
{
public class RequestValidator
{
- static readonly object currentCreationLock = new object();
-
static RequestValidator current;
static Lazy <RequestValidator> lazyLoader;
headerValue = hvalue;
}
}
-
+/*
static bool headerCheckingEnabled;
static BaseResponseHeader ()
HttpRuntimeSection section = WebConfigurationManager.GetWebApplicationSection ("system.web/httpRuntime") as HttpRuntimeSection;
headerCheckingEnabled = section == null || section.EnableHeaderChecking;
}
-
+*/
internal BaseResponseHeader (string val)
{
{
if (instance == null)
throw new ArgumentNullException ("instance");
- if (this is XamlDirective)
- throw new NotSupportedException ("not supported operation on directive members.");
+// if (this is XamlDirective)
+// throw new NotSupportedException ("not supported operation on directive members.");
if (UnderlyingGetter == null)
throw new NotSupportedException ("Attempt to get value from write-only property or event");
return UnderlyingGetter.Invoke (instance, new object [0]);
{
if (instance == null)
throw new ArgumentNullException ("instance");
- if (this is XamlDirective)
- throw new NotSupportedException ("not supported operation on directive members.");
+// if (this is XamlDirective)
+// throw new NotSupportedException ("not supported operation on directive members.");
if (UnderlyingSetter == null)
throw new NotSupportedException ("Attempt to get value from read-only property");
UnderlyingSetter.Invoke (instance, new object [] {value});
../../build/common/Consts.cs
../../build/common/Locale.cs
../../build/common/MonoTODOAttribute.cs
-../../build/common/basic-profile-check.cs
Assembly/AssemblyInfo.cs
System.Windows.Markup/AmbientAttribute.cs
System.Windows.Markup/ArrayExtension.cs
public XamlNodeType OwnerType { get; set; }
- public IEnumerator<NamespaceDeclaration> GetEnumerator ()
+ public new IEnumerator<NamespaceDeclaration> GetEnumerator ()
{
return new NSEnumerator (this, base.GetEnumerator ());
}
{
}
+ [MonoTODO ("settings is not used")]
public XamlObjectReader (object instance, XamlSchemaContext schemaContext, XamlObjectReaderSettings settings)
{
if (schemaContext == null)
this.root = instance;
sctx = schemaContext;
- this.settings = settings;
+// this.settings = settings;
prefix_lookup = new PrefixLookup (this);
readonly object root;
readonly XamlType root_type;
readonly XamlSchemaContext sctx;
- readonly XamlObjectReaderSettings settings;
+// readonly XamlObjectReaderSettings settings;
readonly INamespacePrefixLookup prefix_lookup;
Stack<XamlType> types = new Stack<XamlType> ();
return null;
var xtt = SchemaContext.GetXamlType (type);
var ns = xtt.PreferredXamlNamespace;
- var nss = collectingNamespaces;
CheckAddNamespace (collectingNamespaces, ns);
return null;
}
var xm = members.Pop ();
var state = object_states.Peek ();
- var xt = state.Type;
var contents = state.Contents;
if (xm == XamlLanguage.Arguments) {
InitializeObjectIfRequired (false); // this is required for such case that there was no StartMember call.
var state = object_states.Pop ();
- var xt = state.Type;
var obj = GetCorrectlyTypedValue (state.Type, state.Value);
if (members.Count > 0) {
var pstate = object_states.Peek ();
manager.StartMember ();
- var wpl = object_states.Peek ().WrittenProperties;
+ //var wpl = object_states.Peek ().WrittenProperties;
// FIXME: enable this. Duplicate property check should
// be differentiate from duplicate contents (both result
// in XamlDuplicateMemberException though).
continue;
}
}
- return;
+
default:
Read ();
return;
{
}
- static readonly Type [] predefined_types = {
- typeof (XData), typeof (Uri), typeof (TimeSpan), typeof (PropertyDefinition), typeof (MemberDefinition), typeof (Reference)
- };
+// static readonly Type [] predefined_types = {
+// typeof (XData), typeof (Uri), typeof (TimeSpan), typeof (PropertyDefinition), typeof (MemberDefinition), typeof (Reference)
+// };
public XamlType (Type underlyingType, XamlSchemaContext schemaContext, XamlTypeInvoker invoker)
: this (schemaContext, invoker)
IEnumerator<Pair> stored_member_enumerator;
IXamlNamespaceResolver xaml_namespace_resolver;
- // This is used for things like collection Items.
- Dictionary<int,Stack<XamlMember>> inecting_members = new Dictionary<int,Stack<XamlMember>> ();
-
public bool HasLineInfo {
get { return line_info != null && line_info.HasLineInfo (); }
}
XmlWriter w;
XamlSchemaContext sctx;
XamlXmlWriterSettings settings;
- IValueSerializerContext serializer_context;
XamlWriterStateManager manager;
void DoEndMember ()
{
var xm = nodes.Pop (); // XamlMember
- if (xm == XamlLanguage.Initialization)
- ; // do nothing
- else if (w.WriteState == WriteState.Content)
+ if (xm == XamlLanguage.Initialization) {
+ // do nothing
+ } else if (w.WriteState == WriteState.Content)
w.WriteEndElement ();
else
w.WriteEndAttribute ();
if (xm == null)
return;
- if (xm == XamlLanguage.Initialization)
- ; // do nothing
- else if (next == XamlNodeType.StartObject || w.WriteState == WriteState.Content || has_namespace)
+ if (xm == XamlLanguage.Initialization) {
+ // do nothing
+ } else if (next == XamlNodeType.StartObject || w.WriteState == WriteState.Content || has_namespace)
DoWriteStartMemberElement (xm);
else
DoWriteStartMemberAttribute (xm);
if (queue != null) {
Worker worker = null;
SocketAsyncCall sac = null;
- SocketAsyncResult req = null;
lock (queue) {
// queue.Count will only be 0 if the socket is closed while receive/send
// operation(s) are pending and at least one call to this method is
if (sock != null) {
force_close |= (context.Request.Headers ["connection"] == "close");
if (!force_close) {
- int status_code = context.Response.StatusCode;
- bool conn_close = (status_code == 400 || status_code == 408 || status_code == 411 ||
- status_code == 413 || status_code == 414 || status_code == 500 ||
- status_code == 503);
+// bool conn_close = (status_code == 400 || status_code == 408 || status_code == 411 ||
+// status_code == 413 || status_code == 414 || status_code == 500 ||
+// status_code == 503);
force_close |= (context.Request.ProtocolVersion <= HttpVersion.Version10);
}
Version version;
NameValueCollection query_string; // check if null is ok, check if read-only, check case-sensitiveness
string raw_url;
- Guid identifier;
Uri url;
Uri referrer;
string [] user_languages;
get { return context.Connection.RemoteEndPoint; }
}
+ [MonoTODO ("Always returns Guid.Empty")]
public Guid RequestTraceIdentifier {
- get { return identifier; }
+ get { return Guid.Empty; }
}
public Uri Url {
Thread async_thread;
Encoding encoding = Encoding.Default;
IWebProxy proxy;
- RequestCachePolicy cache_policy;
+// RequestCachePolicy cache_policy;
// Constructors
static WebClient ()
get {
throw GetMustImplement ();
}
- set { cache_policy = value; }
+ set { /*cache_policy = value;*/ }
}
[MonoTODO ("Value can be set but is ignored")]
case '1': case '2': case '3': case '4': case '5':
case '6': case '7': case '8': case '9': {
ptr --;
- int oldptr = ptr;
int n = ParseNumber (10, 1, 0);
if (n < 0) {
ptr = p;
private int cachedHashCode;
private static readonly string hexUpperChars = "0123456789ABCDEF";
- private static string [] Empty = new string [0];
+ private static readonly string [] Empty = new string [0];
private static bool isWin32 = (Path.DirectorySeparatorChar == '\\');
empty_statement
: SEMICOLON
{
- $$ = new EmptyStatement (GetLocation ($1));
+ // Uses lexer.Location because semicolon location is not kept in quick mode
+ $$ = new EmptyStatement (lexer.Location);
}
;