Tags » .Net 3.5

Difference in memory management in different .NET versions

Writing tests for memory issues, I came across a strange behavior. There is a minimal piece of code reproducing the case:


public void LocalVariableTest()
{
  var foo = new Foo();
  foo = null;

  // assert that there is no Foo instances in the memory
  dotMemory.Check(memory =>
    Assert.That(
      memory.GetObjects(
        where => where.Type.Is<Foo>()).ObjectsCount,
  Is.EqualTo(0)));
}
… 139 more words
.NET

Unable to enable .Net Framework 3.5 in Windows Server R2 Update - CRM 2013 installation blocker

As part of installing CRM 2013 for one of our clients we have faced an issue where we couldn’t enable .Net Framework 3.5 in windows server 2012 R2. 119 more words

Microsoft CRM 2013

Packaging Unity3D MonoBehaviour script into DLL

You might have dozens or even hundreds of MonoBehaviour based scripts in your typical Unity3D projects.

For some reasons, either you want to protect your source code from direct access by others, or you might want to put stable helper utility functions in a separate assembly, it is likely that you would like to package all these scripts into a .net assembly in the form of a DLL. 261 more words

Programming

C# Settings reminder

As a reminder to self: Settings are nice (too bad they advertise them as Windows Forms Application Settings, as they are just as useful for other assemblies), but be aware… 55 more words

Development

Raise specific exceptions like InvalidOperationException, not generic ones like ApplicationException.

Code Analysis in Visual Studio objects against using very generic exception types:

CA2201 Do not raise reserved exception types

‘BusinessClass<T>.StopProcessing()’ creates an exception of type ‘ApplicationException’, an exception type that is not sufficiently specific and should never be raised by user code.

67 more words
Development